Skip to content
← Back to Community
pygame.error: No available video device
Profile icon
h
has Hacker Plan
ninjadev64

I cloned (from github) a repository containing a Python file with Pygame and I am getting the error mentioned in the title.

Yes, I have set my repl to be Pygame and not Python as mentioned in many other support articles.

Full error details:
python3 main.py
xcb_connection_has_error() returned true
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
Traceback (most recent call last):
File "main.py", line 9, in
screen = pygame.display.set_mode((800, 600))
pygame.error: No available video device
exit status 1

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
DanielZhang3
Profile icon
RayvanWatson
Profile icon
ninjadev64
Comments
hotnewtop
Profile icon
Coder100

yeah, that's a repl.it bug. Make sure your program doens't play sound, repl.it doesn't support that as they run on a virtual machine.

Otherwise, report to bugs https://repl.it/bugs

Profile icon
RYANTADIPARTHI

this is most probably a bug. try refreshing, or make a new repl. if all fails, report this to bugs. click here to report

Profile icon
mesquite2234

What's your code?