Skip to content
← Back to Community
No available video device...how do I fix this?
Profile icon
tspcode1

pygame 1.9.6Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "main.py", line 7, in
screen = pygame.display.set_mode((328,328))
pygame.error: No available video device

Voters
Profile icon
22yeetz22
Profile icon
tspcode1
Comments
hotnewtop
Profile icon
CyrusCodesXD

This issue just came up again today. New Pygame Repls will work fine it appears, but import pygame in a python Repl will not. Not sure why this is the case as I have not had this issue before, but I did submit a message to the Repl team about this via their contact email.

Profile icon
SixBeeps

1.) You're running Python 2.7
2.) Pygame is its own language on Repl.it

Profile icon
tspcode1

thank you so much! @SixBeeps

Profile icon
SixBeeps

@tspcode1 No problem.

Please mark my comment as the answer if I helped