[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] mixer.music in runtime



Pygame 1.8 does have more dependencies than 1.7. It's been awhile since I used 1.7 but are not smpeg new to Windows. And are not libvorbis and libogg new to 1.8? Could py2exe be overlooking them?

Lenard


René Dudfield wrote:
Can you tell py2exe to include the pygame.music_mixer or
mixer_music.pyd module specifically?


On Wed, Apr 2, 2008 at 9:13 PM, Bo Jangeborg <bo@xxxxxxxxxxx> wrote:
More info on mixer.music
 It works in the pygame 1.7 so looks like we have a bug in 1.8.

 Bo Jangeborg skrev:



Hi

I am trying to run pygame.mixer.music after having created a py2exe.

The import seem to work ok, but it never loads the music method
so the following doesn't work

import pygame.mixer
print pygame.mixer.music

Traceback (most recent call last):
 File "test.pyw", line 728, in <module>
 File "test.pyw", line 128, in main
 File "vers_01\Program\Test\testgame.pyw", line 66, in run
 File "vers_01\Program\Test\testgame.pyw", line 147, in __init__
 File "vers_01\Program\Test\testgame.pyw", line 158, in initiate_music
 File "vers_01\Program\TestMusic\__init__.py", line 1, in <module>
 File "vers_01\Program\TestMusic\musix.pyw", line 11, in <module>
AttributeError: 'module' object has no attribute 'music'


In the developer version it works and the print returns :

<module 'pygame.mixer_music' from 'C:\Program
Files\Python2_5\Lib\site-packages\pygame\mixer_music.pyd'>
What could I be doing wrong ?