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

Pygame.mixer module not available? #4220

Open
wiselot opened this issue May 2, 2024 · 1 comment
Open

Pygame.mixer module not available? #4220

wiselot opened this issue May 2, 2024 · 1 comment

Comments

@wiselot
Copy link

wiselot commented May 2, 2024

When I use Pygame.mixer to play a music file on my Raspberry Pi (Model A+),I got this:
File "...", line 131, in init
pygame.mixer.init()
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pygame/init.py", line 70, in getattr
raise NotImplementedError(missing_msg)
NotImplementedError: mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

I tried to satisify all the requirements,but still got this?

@Zireaeel
Copy link

Hello wiselot,

you can check your pygame version via command line (CMD) Sometimes it helps using latest versions. You can check it like
pip install pygame --upgrade writing on CMD.

or you can reinstall the pygame module, sometimes some libraries are not downloaded 100% of the time

or you can install SDL Dependencies either (Simple Direct Media Layer), pygame.mixer module relies on the SDL libraries, specifically SDL_mixer;
sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-mixer-dev

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

2 participants