StanislavPetrovV / Python-DOOM

Raycasting DOOM imitation
MIT License
130 stars 40 forks source link

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

Open jukeliv opened 2 years ago

jukeliv commented 2 years ago

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

abgr8 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

thanks for the help :D

namonaai commented 2 years ago

Why did I receive this email?

On Tue, May 31, 2022, 18:36 ConchetumareDev @.***> wrote:

thanks for the help :D

— Reply to this email directly, view it on GitHub https://github.com/StanislavPetrovV/Python-DOOM/issues/3#issuecomment-1142367483, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASVYNLXW7ZPWA5SPFHGXQ7TVMY5Z5ANCNFSM5CULVODQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>