Feb-21-2021, 05:59 PM
Just updated to Pygame 2 and have a problem that perhaps somebody has run into before.
Here's the simple code that's failing, and the shell output further below. I added the print-statement just to prove that the file does exist.
import pygame, os
pygame.init()
pygame.mixer.init()
print ("\n Music file exists? ", os.path.exists('music\\Rawhide.ogg'), "\n" )
pygame.mixer.music.load('music\\Rawhide.ogg')
===================== RESTART: C:/Users/Mark/Dropbox/Python/Scale/test.py =====================
pygame 2.0.1 (SDL 2.0.14, Python 3.9.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
Music file exists? True
Traceback (most recent call last):
File "C:/Users/Mark/Dropbox/Python/Goebberts_scale/test.py", line 9, in <module>
pygame.mixer.music.load('music\\Rawhide.ogg')
pygame.error: Failed loading libvorbisfile-3.dll: The specified module could not be found.
=====================
Here's the simple code that's failing, and the shell output further below. I added the print-statement just to prove that the file does exist.
import pygame, os
pygame.init()
pygame.mixer.init()
print ("\n Music file exists? ", os.path.exists('music\\Rawhide.ogg'), "\n" )
pygame.mixer.music.load('music\\Rawhide.ogg')
===================== RESTART: C:/Users/Mark/Dropbox/Python/Scale/test.py =====================
pygame 2.0.1 (SDL 2.0.14, Python 3.9.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
Music file exists? True
Traceback (most recent call last):
File "C:/Users/Mark/Dropbox/Python/Goebberts_scale/test.py", line 9, in <module>
pygame.mixer.music.load('music\\Rawhide.ogg')
pygame.error: Failed loading libvorbisfile-3.dll: The specified module could not be found.
=====================