Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL Issue #3

Open
qtndm opened this issue May 21, 2024 · 2 comments
Open

SDL Issue #3

qtndm opened this issue May 21, 2024 · 2 comments

Comments

@qtndm
Copy link

qtndm commented May 21, 2024

Hello, I installed sdl etc but when i launch the program it says me this :

Traceback (most recent call last):
File "C:\Users\nayth\PycharmProjects\pyswargol\swargol.py", line 444, in
main(cfg)
File "C:\Users\nayth\PycharmProjects\pyswargol\swargol.py", line 363, in main
raise Exception("Failed to init SDL2")
Exception: Failed to init SDL2

Do you have any idea on how to fix this ? Thank you for your help.

@DavidBuchanan314
Copy link
Owner

I'd recommend raising this issue with the pysdl2 devs https://github.com/py-sdl/py-sdl2

@diimdeep
Copy link

Fixed for me on macos

os.environ["SDL_VIDEODRIVER"] = "x11"

import sys
if sys.platform.startswith('linux'): os.environ["SDL_VIDEODRIVER"] = "x11"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants