Ask coding questions

← Back to all posts
pygame.error: No available video device
ninjadev64 (2)

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 <module>
screen = pygame.display.set_mode((800, 600))
pygame.error: No available video device
exit status 1

Comments
hotnewtop
RYANTADIPARTHI (6010)

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

Coder100 (17126)

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