Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113929 - pydance fails to run, with "pygame.error: mixer system not initialized" error
Summary: pydance fails to run, with "pygame.error: mixer system not initialized" error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-29 11:31 UTC by Denilson Sá Maia
Modified: 2005-11-29 16:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denilson Sá Maia 2005-11-29 11:31:31 UTC
My system is one updated stable gentoo. I have latest SDL and Python packages 
(but only stable). Then I emerged pydance. The emerge worked, but whenever I try 
to run pydance, I get this output:

$ pydance
1 joystick(s) found.
Joystick 0 initialized: 6 axes, 12 buttons.
Loaded input configuration.
Traceback (most recent call last):
  File "./pydance.py", line 36, in ?
    import dance
  File "/usr/share/games/pydance/dance.py", line 9, in ?
    from player import Player
  File "/usr/share/games/pydance/player.py", line 5, in ?
    import arrows
  File "/usr/share/games/pydance/arrows.py", line 10, in ?
    class AbstractArrow(pygame.sprite.Sprite):
  File "/usr/share/games/pydance/arrows.py", line 17, in AbstractArrow
    "assist-%s.ogg" % d))
pygame.error: mixer system not initialized

Reproducible: Always
Steps to Reproduce:




#  emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.
12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=i686 -mcpu=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/
share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=i686 -mcpu=pentium3 -fomit-frame-pointer"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
PKGDIR="/gentoo/packages"
PORTAGE_TMPDIR="/gentoo/tmp_portage"
PORTDIR="/gentoo/portage"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="x86 7zip X aac acpi alsa apache2 arts audiofile avi bitmap-fonts bzip2 cdr 
clamav crypt cups curl divx4linux dts dv dvd dvdr dvdread emboss encode esd 
ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gimp 
gimpprint glut gphoto2 gpm gstreamer gtk gtk2 gtkhtml gzip idn imagemagick imlib 
ipv6 java joystick jpeg kdeenablefinal lcms libg++ libwww live lm_sensors mad 
matroska mhash mikmod mmx mng motif mp3 mpeg mysql ncurses nls no-htdocs 
nsplugin nvidia ogg oggvorbis openal opengl pam pcre pdflib perl png python qt 
quicktime rar readline recode scanner sdl slang spell sse ssl svg tcltk tcpd 
tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd 
vorbis win32codecs wmf xanim xine xinerama xml2 xpm xv xvid zlib userland_GNU 
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, 
PORTDIR_OVERLAY


I have the following versions installed:


dev-lang/python-2.4.2
dev-python/pygame-1.6.2
media-libs/libsdl-1.2.8-r1
media-libs/sdl-gfx-2.0.13
media-libs/sdl-image-1.2.3-r1
media-libs/sdl-mixer-1.2.6
media-libs/sdl-net-1.2.5
media-libs/sdl-sound-1.0.1-r1
media-libs/sdl-ttf-2.0.7
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-11-29 11:37:32 UTC
can I see the output from "emerge -evp world" please?
Comment 2 Denilson Sá Maia 2005-11-29 11:43:07 UTC
(In reply to comment #1)
> can I see the output from "emerge -evp world" please?

Of course!

[ebuild  N    ] sys-devel/patch-2.5.9  -build -static 0 kB 
[ebuild  N    ] sys-libs/gpm-1.20.1-r4  -emacs (-selinux) 0 kB 
[ebuild  N    ] sys-libs/ncurses-5.4-r6  -bootstrap -build -debug -doc +gpm -
minimal -nocxx +unicode 0 kB 
[ebuild  N    ] sys-devel/m4-1.4.3  +nls 0 kB 
[ebuild  N    ] sys-devel/bison-1.875d  +nls -static 0 kB 
[ebuild  N    ] sys-apps/sed-4.1.4  -bootstrap -build +nls -static 0 kB 
[ebuild  N    ] sys-devel/gcc-config-1.3.12-r4  0 kB 
[ebuild  N    ] sys-devel/binutils-config-1.8-r6  0 kB 
[ebuild  N    ] sys-devel/gnuconfig-20050602  0 kB 
[ebuild  N    ] sys-devel/binutils-2.16.1  -multislot -multitarget +nls -test 0 
kB 
[ebuild  N    ] sys-libs/zlib-1.2.3  -build 0 kB 
[ebuild  N    ] sys-devel/gcc-3.3.6  (-altivec) -bootstrap -boundschecking -
build +fortran -gcj +gtk -hardened -ip28 -mudflap (-multilib) -multislot (-n32) 
(-n64) +nls -nocxx -nopie -nossp -objc -objc-gc -vanilla 0 kB 
[ebuild  N    ] sys-kernel/linux-headers-2.6.11-r2  0 kB 
[ebuild  N    ] sys-libs/glibc-2.3.5-r2  -build -erandom -glibc-compat20 -glibc-
omitfp -hardened -linuxthreads-tls (-multilib) +nls -nptl -nptlonly -pic -
profile (-selinux) -userlocales 0 kB 
[ebuild  N    ] sys-devel/gettext-0.14.4  -doc -emacs +nls 0 kB 
[ebuild  N    ] sys-apps/texinfo-4.8-r2  -build +nls -static 0 kB 
[ebuild  N    ] sys-apps/groff-1.19.1-r2  +X 0 kB 
[ebuild  N    ] sys-process/cronbase-0.3.2  0 kB 
[ebuild  N    ] sys-apps/man-1.6-r1  +nls 0 kB 
[ebuild  N    ] sys-apps/man-pages-2.13  +nls 0 kB 
[ebuild  N    ] dev-util/pkgconfig-0.17.2-r1  -hardened 0 kB 
[ebuild  N    ] dev-libs/libpcre-6.3  -doc 0 kB 
[ebuild  N    ] sys-apps/grep-2.5.1-r8  -build +nls +pcre -static 0 kB 
[ebuild  N    ] app-arch/gzip-1.3.5-r8  -build +nls -pic -static 0 kB 
[ebuild  N    ] sys-libs/gdbm-1.8.3-r2  -berkdb 0 kB 
[ebuild  N    ] sys-devel/libperl-5.8.6-r1  -berkdb -debug +gdbm -ithreads 0 kB 
[ebuild  N    ] dev-lang/perl-5.8.6-r6  -berkdb -build -debug -doc +gdbm -
ithreads -minimal -perlsuid 0 kB 
[ebuild  N    ] sys-devel/autoconf-2.13  0 kB 
[ebuild  N    ] sys-devel/autoconf-wrapper-3-r1  0 kB 
[ebuild  N    ] sys-devel/autoconf-2.59-r6  -emacs 0 kB 
[ebuild  N    ] app-shells/bash-3.0-r12  -bashlogger -build +nls 0 kB 
[ebuild  N    ] app-admin/perl-cleaner-1.01  0 kB 
[ebuild  N    ] sys-libs/cracklib-2.8.3-r1  0 kB 
[ebuild  N    ] dev-perl/Locale-gettext-1.03  0 kB 
[ebuild  N    ] sys-apps/help2man-1.33.1  +nls 0 kB 
[ebuild  N    ] sys-devel/automake-1.5  0 kB 
[ebuild  N    ] sys-devel/automake-1.8.5-r3  0 kB 
[ebuild  N    ] sys-devel/automake-1.6.3  0 kB 
[ebuild  N    ] sys-devel/automake-1.7.9-r1  0 kB 
[ebuild  N    ] sys-devel/automake-1.4_p6  0 kB 
[ebuild  N    ] sys-devel/automake-wrapper-1-r1  0 kB 
[ebuild  N    ] sys-devel/automake-1.9.6-r1  0 kB 
[ebuild  N    ] sys-devel/flex-2.5.4a-r6  -build -static 0 kB 
[ebuild  N    ] sys-libs/pam-0.78-r3  -berkdb -nis -pam_chroot -pam_console -
pam_timestamp -pwdb (-selinux) 0 kB 
[ebuild  N    ] dev-libs/expat-1.95.8  -test 0 kB 
[ebuild  N    ] sys-libs/readline-5.0-r2  0 kB 
[ebuild  N    ] sys-devel/bc-1.06-r6  +readline -static 0 kB 
[ebuild  N    ] sys-apps/diffutils-2.8.7-r1  +nls -static 0 kB 
[ebuild  N    ] dev-libs/openssl-0.9.7e-r2  -bindist -emacs -test +zlib 0 kB 
[ebuild  N    ] media-libs/libpng-1.2.8  -doc 0 kB 
[ebuild  N    ] app-arch/bzip2-1.0.3-r5  -build -static 0 kB 
[ebuild  N    ] x11-base/opengl-update-2.2.1  0 kB 
[ebuild  N    ] media-libs/freetype-2.1.9-r1  -bindist -doc +zlib 0 kB 
[ebuild  N    ] sys-devel/libtool-1.5.20  0 kB 
[ebuild  N    ] x11-misc/ttmkfdir-3.0.9-r3  0 kB 
[ebuild  N    ] media-libs/fontconfig-2.2.3  0 kB 
[ebuild  N    ] x11-base/xorg-x11-6.8.2-r6  -3dfx -3dnow +bitmap-fonts -cjk -
debug -dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx 
+nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-
uclibc) -xprint +xv 0 kB 
[ebuild  N    ] sys-apps/file-4.13  -build +python 0 kB 
[ebuild  N    ] sys-apps/which-2.16  0 kB 
[ebuild  N    ] app-arch/cpio-2.6-r4  +nls 0 kB 
[ebuild  N    ] app-arch/rpm2targz-9.0-r3  0 kB 
[ebuild  N    ] sys-apps/utempter-0.5.5.6  0 kB 
[ebuild  N    ] x11-terms/xterm-204  -Xaw3d -toolbar +truetype +unicode 0 kB 
[ebuild  N    ] dev-lang/tcl-8.4.9  -threads 0 kB 
[ebuild  N    ] dev-lang/tk-8.4.9  -threads 0 kB 
[ebuild  N    ] dev-lang/python-2.4.2  +X -berkdb -bootstrap -build -doc +gdbm 
+ipv6 +ncurses -nocxx +readline +ssl +tcltk -ucs2 0 kB 
[ebuild  N    ] dev-python/python-fchksum-1.7.1  0 kB 
[ebuild  N    ] sys-apps/sandbox-1.2.12  0 kB 
[ebuild  N    ] sys-apps/debianutils-2.14.1-r1  -build -static 0 kB 
[ebuild  N    ] sys-apps/portage-2.0.51.22-r3  -build (-selinux) 0 kB 
*** Please update portage to the above version before proceeding.
    Failure to do so may result in failed or improper merges.
    A simple 'emerge -u portage' is sufficient.

[ebuild  N    ] sys-apps/shadow-4.0.7-r4  +nls -nousuid +pam (-selinux) -skey 0 
kB 
[ebuild  N    ] sys-apps/pam-login-3.17  -livecd +nls (-selinux) 0 kB 
[ebuild  N    ] sys-libs/com_err-1.38  +nls 0 kB 
[ebuild  N    ] sys-libs/ss-1.38  +nls 0 kB 
[ebuild  N    ] sys-fs/e2fsprogs-1.38  +nls -static 0 kB 
[ebuild  N    ] app-crypt/hashalot-0.3-r1  0 kB 
[ebuild  N    ] sys-apps/util-linux-2.12r  +crypt +nls -old-crypt +pam +perl (-
selinux) -static 0 kB 
[ebuild  N    ] sys-apps/kbd-1.12-r5  +nls 0 kB 
[ebuild  N    ] sys-apps/net-tools-1.60-r11  -build +nls -static 0 kB 
[ebuild  N    ] sys-apps/module-init-tools-3.0-r2  0 kB 
[ebuild  N    ] sys-apps/gawk-3.1.4-r4  -build +nls -xml 0 kB 
[ebuild  N    ] app-arch/tar-1.15.1  -build +bzip2 +nls -static 0 kB 
[ebuild  N    ] sys-apps/sysvinit-2.86  -bootstrap -build -ibm (-selinux) -
static 0 kB 
[ebuild  N    ] sys-apps/coreutils-5.2.1-r6  -acl -build +nls (-selinux) -static 
0 kB 
[ebuild  N    ] sys-apps/baselayout-1.11.13-r1  -bootstrap -build -static 
+unicode 0 kB 
[ebuild  N    ] sys-process/psmisc-21.6  +nls (-selinux) 0 kB 
[ebuild  N    ] app-editors/nano-1.3.7  -build -debug -justify +ncurses +nls -
nomac +slang +spell +unicode 0 kB 
[ebuild  N    ] dev-libs/popt-1.7-r1  +nls 0 kB 
[ebuild  N    ] net-misc/rsync-2.6.0-r6  -acl -build -livecd -static 0 kB 
[ebuild  N    ] sys-devel/make-3.80-r2  -build -hardened +nls -static 0 kB 
[ebuild  N    ] sys-apps/hotplug-base-20040401  0 kB 
[ebuild  N    ] sys-fs/udev-070-r1  (-selinux) -static 0 kB 
[ebuild  N    ] net-misc/iputils-021109-r3  -doc +ipv6 -static 0 kB 
[ebuild  N    ] sys-process/procps-3.2.5-r1  (-n32) 0 kB 
[ebuild  N    ] sys-apps/tcp-wrappers-7.6-r8  +ipv6 0 kB 
[ebuild  N    ] net-misc/openssh-4.2_p1  -X509 -chroot -hpn +ipv6 -kerberos -
ldap -libedit +pam (-selinux) -sftplogging -skey -smartcard -static +tcpd 0 kB 
[ebuild  N    ] sys-apps/findutils-4.1.20-r1  -afs -build +nls (-selinux) -
static 0 kB 
[ebuild  N    ] net-misc/wget-1.10.2  -build -debug +ipv6 +nls -socks5 +ssl -
static 0 kB 
[ebuild  N    ] sys-apps/less-382-r2  0 kB 
[ebuild  N    ] sys-apps/hdparm-5.9  0 kB 
[ebuild  N    ] sys-apps/busybox-1.00-r4  -debug -floppyboot -make-symlinks -
netboot -savedconfig -static 0 kB 
[ebuild  N    ] sys-libs/pwdb-0.62  (-selinux) 0 kB 
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-11-29 12:36:45 UTC
What's the output of the command "groups" ?
Comment 4 Denilson Sá Maia 2005-11-29 12:40:36 UTC
(In reply to comment #3)
> What's the output of the command "groups" ?

wheel floppy cron audio cdrom video games cdrw apache usb users scanner
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-11-29 14:01:07 UTC
dunno.  Works fine for me.  Try logging out completely and logging back in.
Comment 6 Denilson Sá Maia 2005-11-29 14:16:19 UTC
(In reply to comment #5)
> dunno.  Works fine for me.  Try logging out completely and logging back in.

I already did that too.

I think the problem is inside pydance source code. I found somewhere on Google 
(lost URL, sorry) that "aliens" demo from pygame was printing the same message. 
The problem was that "aliens" was trying to use mixer module, even if that 
failed to initialize. The solution was a patch that added a check if the mixer 
module was initialized, before using it.

I tried now aliens.py example from pygame-1.6.2 and it worked with no problems. 
Anyway, pydance still don't work.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2005-11-29 14:20:16 UTC
Try it with sdl-mixer-1.2.6-r1
Comment 8 Denilson Sá Maia 2005-11-29 16:32:44 UTC
Updating to sdl-mixer-1.2.6-r1 solved it. I wonder how many time until this 
version becomes stable.

Thank you.