Cool, thanks. It's kind of weird, because at one point it was working fine.
If this doesn't work, then I think I'll have to wait until I get a Mac to look into it further(when I can borrow my girl friends mac again). This method of debugging is way to slow :) cheers, On Tue, Dec 23, 2008 at 5:37 PM, James Paige <[email protected]> wrote: > On Tue, Dec 23, 2008 at 11:10:03AM +1100, René Dudfield wrote: >> Hi, >> >> I made some more changes... try out r1768. >> http://thorbrian.com/pygame/builds.php > > Okay, I'll try it tomorrow (I am away from my mac right now.) > >> Is pygame.imageext working for you? Ie, can you load png files with >> your py2app program? > > Yes, I use png files almost exclusively, and I have never had problems > loading them in py2app bundled programs. > > --- > James Paige > >> cheers, >> >> On Tue, Dec 23, 2008 at 10:14 AM, James Paige <[email protected]> >> wrote: >> > Okay, I tried again with the latest svn r1764 >> > >> > The py2app bundle still crashes, saying: >> > >> > NOTE3: here in mixer.c... >> > NOTE2: failed importing pygame.mixer_music in lib/__init__.py >> > Traceback (most recent call last): >> > File >> > "/Users/james/src/hamster/stegavorto/musictest/dist/musictest.app/Contents/Resources/__boot__.py", >> > line 31, in <module> >> > _run('test.py') >> > File >> > "/Users/james/src/hamster/stegavorto/musictest/dist/musictest.app/Contents/Resources/__boot__.py", >> > line 28, in _run >> > execfile(path, globals(), globals()) >> > File >> > "/Users/james/src/hamster/stegavorto/musictest/dist/musictest.app/Contents/Resources/test.py", >> > line 4, in <module> >> > pygame.mixer.music.load("song.ogg") >> > AttributeError: 'module' object has no attribute 'music' >> > 2008-12-22 15:11:51.945 musictest[549] musictest Error >> > 2008-12-22 15:11:51.946 musictest[549] musictest Error >> > An unexpected error has occurred during execution of the main script >> > >> > AttributeError: 'module' object has no attribute 'music' >> > >> > --- >> > James Paige >> > >> > On Tue, Dec 23, 2008 at 09:54:33AM +1100, René Dudfield wrote: >> >> hi, >> >> >> >> it now tries to import "mixer_music" rather than pygame.mixer_music if >> >> it fails to load pygame.mixer_music first. >> >> >> >> r1755+ >> >> http://thorbrian.com/pygame/builds.php >> >> >> >> >> >> If that doesn't work I'll have to try something else. >> >> >> >> cheers, >> >> >> >> >> >> ps. sorry I wrote this email a couple of days ago, but forgot to press >> >> send, and it went to my draft folder! >> >> >> >> >> >> On Fri, Dec 19, 2008 at 3:41 AM, James Paige <[email protected]> >> >> wrote: >> >> > On Thu, Dec 18, 2008 at 09:56:19AM +1100, René Dudfield wrote: >> >> >> Hi, >> >> >> >> >> >> I added a couple of printf statements to src/mixer.c and >> >> >> lib/__init__.py >> >> >> >> >> >> get a download from here when it updates(r1751) >> >> >> http://thorbrian.com/pygame/builds.php >> >> >> >> >> >> I think py2app stopped working correctly at some point, and the >> >> >> imports are stuffing up. >> >> >> >> >> >> One I know what it prints out, then maybe I can figure out what to do >> >> >> next. >> >> >> >> >> >> I don't have access to a mac to test with at the moment... >> >> > >> >> > >> >> > Okay, so I installed last night's pygame 1.9 build. When I run my test >> >> > script directly, it works perfectly, but I see: >> >> > >> >> > -------------- >> >> > darkside:~/src/hamster/stegavorto/musictest james$ python test.py >> >> > NOTE: failed loading pygame.mixer_music in src/mixer.c >> >> > NOTE2: failed importing pygame.mixer_music in lib/__init__.py >> >> > -------------- >> >> > >> >> > When I run it from a py2app bundle, it says: >> >> > >> >> > -------------- >> >> > NOTE2: failed importing pygame.mixer_music in lib/__init__.py >> >> > Traceback (most recent call last): >> >> > File >> >> > "/Users/james/src/hamster/stegavorto/musictest/dist/musictest.app/Contents/Resources/__boot__.py", >> >> > line 31, in <module> >> >> > _run('test.py') >> >> > File >> >> > "/Users/james/src/hamster/stegavorto/musictest/dist/musictest.app/Contents/Resources/__boot__.py", >> >> > line 28, in _run >> >> > execfile(path, globals(), globals()) >> >> > File >> >> > "/Users/james/src/hamster/stegavorto/musictest/dist/musictest.app/Contents/Resources/test.py", >> >> > line 5, in <module> >> >> > pygame.mixer.music.load("song.ogg") >> >> > AttributeError: 'module' object has no attribute 'music' >> >> > 2008-12-18 08:33:36.092 musictest[11800] musictest Error >> >> > 2008-12-18 08:33:36.093 musictest[11800] musictest Error >> >> > An unexpected error has occurred during execution of the main script >> >> > >> >> > AttributeError: 'module' object has no attribute 'music' >> >> > -------------- >> >> > >> >> > I find it curious that the first "NOTE" doesn't show up. >> >> > >> >> >> Also, please try "import pygame.mixer_music" before you import >> >> >> anything else in pygame. >> >> > >> >> > I tried. It made no difference. Neither running the script directly nor >> >> > when in the py2app bundle. the debug NOTE lines were the same. >> >> > >> >> > --- >> >> > James Paige >> >> > >> >> >> >> >> > >> >> >
