Artingl / Minecraft-Pygame

Simple 3d game with pyglet, pygame and pyopengl
GNU General Public License v3.0
25 stars 8 forks source link

Pygame.error: Failed loading libvorbisfile-3.dll:The specified module could not be found. #4

Open WorkInProgressNow opened 3 years ago

WorkInProgressNow commented 3 years ago

After I used the method from the persons on github to fix a bug,I run the code again.But I found that it also can not work!The python shell tell me just like title: pygame.error: Failed loading libvorbisfile-3.dll:The specified module could not be found.Before the pygame.error,the python shell tell me the error is from the

File "C:\Minecraft-Pygame-main\game\sound\Sound.py", line 33, in initMusic      
    self.musicPlayer.load(self.MENU_MUSIC[musicNum])
File "C:\Minecraft-Pygame-main\main.py", line 398, in <module>
    sound.initMusic(False)

I search a lot about this from the internet,but I found that they are all not useful.I really did not know how to fix it! Can you help me?

Artingl commented 3 years ago

What's the python version do you use? And is the version of libraries the same as in requirements.txt? Also what os are you using?

WorkInProgressNow commented 3 years ago

I use python3.8.8 ;The numpy is 1.20.0,the pyglet is 1.5.13,the others are the same:My os is 10.0.18363.1379.

Artingl commented 3 years ago

You have to use the same version of libraries as in file the requirements.txt

WorkInProgressNow commented 3 years ago

I use the same version s now.But the error is also here.