python - pygame.init gives 'there is no soundcard' -



python - pygame.init gives 'there is no soundcard' -

everytime run pygame.init() "there no soundcard" message. 1 thread in ubuntu forums said run pygame.init() twice , message disappear. thing is, when write script run script terminal, still no sound card message.

what should do?

python 2.7.1+ (r271:86832, apr 11 2011, 18:05:24) [gcc 4.5.2] on linux2 type "help", "copyright", "credits" or "license" more information. >>> import pygame, sys >>> pygame.init() there no soundcard (6, 0) >>>

thanks!

i same error , prepare on linux-mint14 today.

first, utilize apt-cache depends python-pygame see packages depended python-pygame.

the result is:

依赖: python2.7 依赖: python 依赖: python 依赖: libc6 依赖: libjpeg8 依赖: libpng12-0 依赖: libportmidi0 依赖: libsdl-image1.2 依赖: libsdl-mixer1.2 依赖: libsdl-ttf2.0-0 依赖: libsdl1.2debian 依赖: libsmpeg0 依赖: libx11-6 依赖: python-numpy 依赖: ttf-freefont fonts-freefont-ttf 建议: timidity 冲突: <python2.3-pygame> 冲突: <python2.4-pygame> 替换: <python2.3-pygame> 替换: <python2.4-pygame>

it suggests me install bundle timidity.

then, utilize sudo apt-get install timidity install it.

after that, there's no soundcard error when utilize pygame.init()

python pygame

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -