Problems running replit-play in
glrudolph (1)

This week there was a feature in the 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.
Loading chipmunk for Linux (64bit) [/home/runner/.local/lib/python3.6/site-packages/pymunk/]
Traceback (most recent call last):
File "", line 1, in <module>
import play
File "/home/runner/.local/lib/python3.6/site-packages/play/", line 3, in <module>
from .play import *
File "/home/runner/.local/lib/python3.6/site-packages/play/", 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 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 newsletter and run the same example, so I'm not posting code here.

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

@heyitsmarcus my mistake. I meant to say that in a plain Python 3 repl, the script appears to install pygame as expected, but pygame doesn't load and run because of the video drivers. The latter is what I meant by "not configured properly".