Python Forum
[PyGame] mixer failing in 2.0
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] mixer failing in 2.0
#1
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.
=====================
Reply


Messages In This Thread
mixer failing in 2.0 - by fmr300 - Feb-21-2021, 05:59 PM
RE: mixer failing in 2.0 - by michael1789 - Feb-21-2021, 06:13 PM
RE: mixer failing in 2.0 - by nilamo - Feb-22-2021, 05:27 PM
RE: mixer failing in 2.0 - by BashBedlam - Mar-14-2021, 11:43 PM
RE: mixer failing in 2.0 - by michael1789 - Mar-15-2021, 03:08 PM
RE: mixer failing in 2.0 - by BashBedlam - Mar-15-2021, 06:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pygame.mixer.init() devicename issue wanhr 2 6,613 Sep-15-2019, 09:08 AM
Last Post: wanhr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020