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

Re: [pygame] mixer.music in runtime



hi,

did you try and import pygame.mixer_music to see the traceback?

As Brian has said it works for him with those versions, so he can't
try it himself.

cheers,



On Sun, Apr 6, 2008 at 4:49 AM, Phil Hassey <philhassey@xxxxxxxxx> wrote:
> Hey,
>
> I'm working on a game and just set up a fresh dev environment.  I found that
> I was having the same issues with py2exe and pygame.  Since (as I'll post in
> a minute) I was having issues with pygame-1.8's sound, I downgraded to 1.7
> to fix that.  However, the py2exe issues persisted.  I checked on one of my
> other systems and saw that I was using py2exe 0.6.5 on those systems.  By
> downgrading to py2exe 0.6.5, I was able to resolve the mixer issue.
>
> So my conclusion is - somehow py2exe 0.6.6 doesn't like pygame (1.7 or 1.8).
>
> Hope that helps!
> -Phil
>
>
> René Dudfield <renesd@xxxxxxxxx> wrote:
>  ah, yeah. smpeg wasn't in 1.7.1 on windows... but now it is.
>
> So, yeah, that's most likely the problem.
>
>
> On Thu, Apr 3, 2008 at 9:33 AM, Lenard Lindstrom wrote:
> > 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 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
> > > > > 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
> > > > > File "vers_01\Program\TestMusic\musix.pyw", line 11, in
> > > > > AttributeError: 'module' object has no attribute 'music'
> > > > >
> > > > >
> > > > > In the developer version it works and the print returns :
> > > > >
> > > > >
> > > > >
> > > > >
> > > > Files\Python2_5\Lib\site-packages\pygame\mixer_music.pyd'>
> > > >
> > > >
> > > > > What could I be doing wrong ?
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>
>
>
>  ________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster
> Total Access, No Cost.