bug: pygame.error video system not initialised in pygame #16121
Replies: 4 comments
-
Hi @starlightknown, thank you for reaching out. Does the program run if you run it in the terminal directly? A quick search for |
Beta Was this translation helpful? Give feedback.
-
no it doesn't and yes I tried all those solutions from stackoverflow , they didn't work. One solution which was |
Beta Was this translation helpful? Give feedback.
-
If your program doesn't run in the terminal, then it isn't a problem with the extension itself, but with your program. As such, I will move your question to a discussion. |
Beta Was this translation helpful? Give feedback.
-
There appear to be some potential answers on Stack Overflow: https://stackoverflow.com/questions/15933493/pygame-error-no-available-video-device. |
Beta Was this translation helpful? Give feedback.
-
Pygame gives error
pygame.error: No available video device
on vs code while running a program but the same program when ran it pycharm , it gave no error. The drivers are updated too.Environment data
python.languageServer
setting: XXX[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
Actual behaviour
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Beta Was this translation helpful? Give feedback.
All reactions