Package: pyracerz Version: 0.2-3 Severity: normal Tags: patch | $ pyracerz | Traceback (most recent call last): | File "/usr/bin/pyracerz", line 276, in ? | if __name__ == '__main__': main() | File "/usr/bin/pyracerz", line 110, in main | pygame.mixer.music.load(os.path.join("/usr/share/games/pyracerz/sounds", "start.ogg")) | pygame.error: mixer system not initialized
After `modprobe snd-pcm-oss` (emulate OSS in ALSA) all worked fine Attached patch will disable sound when mixer is not initialized correctly (i.e. when OSS support in kernel is disabled) -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.18-rc7 Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) Versions of packages pyracerz depends on: ii libsdl-ttf2.0-0 2.0.8-3 ttf library for Simple DirectMedia ii python 2.4.3-11 An interactive high-level object-o ii python-central 0.5.6 register and build utility for Pyt ii python-numeric 24.2-6 Numerical (matrix-oriented) Mathem ii python-pygame 1.7.1release-4 SDL bindings for games development Versions of packages pyracerz recommends: ii python-psyco 1.5-3 python specializing compiler -- no debconf information
only in patch2: unchanged: --- pyracerz-0.2.orig/pyRacerz.py +++ pyracerz-0.2/pyRacerz.py @@ -107,8 +107,12 @@ pygame.display.set_icon(pygame.image.load(os.path.join("sprites", "pyRacerzIcon.bmp"))) if misc.music == 1: - pygame.mixer.music.load(os.path.join("sounds", "start.ogg")) - pygame.mixer.music.play() + try: + pygame.mixer.music.load(os.path.join("sounds", "start.ogg")) + pygame.mixer.music.play() + except: + print "pyRacerz cannot initialize sound... disabling" + misc.music = 0 try: import psyco