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.
Uh oh!
There was an error while loading. Please reload this page.
-
Pygame gives error
pygame.error: No available video deviceon 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.languageServersetting: 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
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Beta Was this translation helpful? Give feedback.
All reactions