[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] mixer.music in runtime
hi again,
have you got a link to your code we could download? Also the command
you are using to build it would be nice.
cheers,
On Thu, Apr 3, 2008 at 10:16 AM, Bo Jangeborg <bo@xxxxxxxxxxx> wrote:
> The following are included in the main directory where the other dll's are:
> smpeg.dll
> libogg-0.dll
> libvorbis-0.dll
> libvorbisfile-3.dll
> libogg-0.dll
> mixer_music.pyd
>
> So py2exe didn't miss any as far as I can see.
>
> Since no error is thrown on import is there any other
> conditions that are triggered to make it not import the mixer_music ?
>
> Have you tried it yourself's ?
>
>
> René Dudfield skrev:
>
>
>
> > 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 <len-l@xxxxxxxxx> 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 <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 ?
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
> >
>
>