Problems running replit-play in repl.it
glrudolph (1)

This week there was a feature in the repl.it newsletter on replit-play. It was able to run the cat example in the author's example repl, but when I tried to run the same code in my own repl, Some packages would install and compile, but other packages would install but not run. Here are the results:

Python 3.6.1 (default, Dec 2015, 13:05:11)
[GCC 4.8.2] on linux
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Loading chipmunk for Linux (64bit) [/home/runner/.local/lib/python3.6/site-packages/pymunk/libchipmunk.so]
Traceback (most recent call last):
File "main.py", line 1, in <module>
import play
File "/home/runner/.local/lib/python3.6/site-packages/play/init.py", line 3, in <module>
from .play import *
File "/home/runner/.local/lib/python3.6/site-packages/play/play.py", line 88, in <module>
_pygame_display = pygame.display.set_mode((screen.width, screen.height), pygame.DOUBLEBUF)
pygame.error: No available video device

I was running this from Chrome browser, but same results in Firefox and Edge browsers...
Some thing about my repl.it configuration--such as the author was running Python 3.6.7, my repls run 3.6.1--is different enoughto cause problems.

I am assuming anyone who looks at this post can find the repl.it newsletter and run the same example, so I'm not posting code here.

You are viewing a single comment. View All
Answered by heyitsmarcus (288) [earned 5 cycles]
View Answer
glrudolph (1)

@heyitsmarcus It looks like it loads pygame, but not configured properly.