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.error: Failed loading libmpg123-0.dll #3

Open
jukeliv opened this issue Aug 23, 2021 · 4 comments
Open

pygame.error: Failed loading libmpg123-0.dll #3

jukeliv opened this issue Aug 23, 2021 · 4 comments

Comments

@jukeliv
Copy link

jukeliv commented Aug 23, 2021

when im compiling the program everythong look good, but when the window pops up i jus resive an error in the command prompt (pygame.error: Failed loading libmpg123-0.dll) and the window close himself, help :c

@abbas-rz
Copy link

abbas-rz commented Sep 22, 2021

try using pipenv to install the pygame module
make sure it is in the same directory as pydoom
and try using some other way of compiling (like using pyinstaller, or py2exe)
make sure you have the correct version of python installed

@dev-milani
Copy link

Hello how are you?

I'll leave the solution below that for my case solved:

1 - Go to the directory where pygame is installed and find the file "libmpg123-0.dll".
On my computer it is in the following directory, but on yours it will be in another: "C:\Users\Felipe\PycharmProjects\PythonExercicios\venv\Lib\site-packages\pygame" (yours will be the same from the venv folder);
2 - Copy the "libmpg123-0.dll" file;
3 - Go to the system32 folder - "C:\Windows\System32" and paste the "libmpg123-0.dll" file;
4 - Go to the SysWOW64 folder - "C:\Windows\SysWOW64" and paste the "libmpg123-0.dll" file;
5 - Restart the system;

This was the only way that worked for me, hope it helps you.

@jukeliv
Copy link
Author

jukeliv commented May 31, 2022

thanks for the help :D

@namonaai
Copy link

namonaai commented May 31, 2022 via email

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

4 participants