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

Re: [pygame] Re: PyObjc dependency replaced for pygame on Mac OS X



In case you are curious, my own minimal sample that I used to test py2app with after doing the pyobjc removal stuff worked when I first made the change, but with rev 1924 I'm getting:

2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025] Traceback (most recent call last):
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]   File "/Users/reflexiveentertainment/temp/BundleTest/dist/Main.app/Contents/Resources/__boot__.py", line 137, in <module>
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]     _run('Main.py')
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]   File "/Users/reflexiveentertainment/temp/BundleTest/dist/Main.app/Contents/Resources/__boot__.py", line 134, in _run
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]     execfile(path, globals(), globals())
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]   File "/Users/reflexiveentertainment/temp/BundleTest/dist/Main.app/Contents/Resources/Main.py", line 1, in <module>
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]     import pygame
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]   File "pygame/__init__.pyc", line 100, in <module>
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]   File "pygame/color.pyc", line 18, in <module>
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]   File "pygame/color.pyc", line 11, in __load
2/12/09 8:00:47 PM [0x0-0x6e06e].org.pythonmac.unspecified.Main[4025] ImportError: No module named colordict
2/12/09 8:00:47 PM Main[4025] Main Error
2/12/09 8:00:47 PM Main[4025] Main Error
An unexpected error has occurred during execution of the main script

ImportError: No module named colordict
 
2/12/09 8:00:47 PM Main[4025] Main Error
An unexpected error has occurred during execution of the main script

ImportError: No module named colordict
 
2/12/09 8:00:49 PM com.apple.launchd[91] ([0x0-0x6e06e].org.pythonmac.unspecified.Main[4025]) Exited with exit code: 255


On Thu, Feb 12, 2009 at 6:21 PM, Ulrich Petri <mail@xxxxxx> wrote:
Hi,

I tried to build a simple pygame app with py2app but the resulting app bundle refuses to launch.

Details as follows:

Traceback (most recent call last):
 File "xxxxx/dist/myapp.app/Contents/Resources/__boot__.py", line 31, in <module>
   _run('myapp.py')
 File "xxxxx/dist/myapp.app/Contents/Resources/__boot__.py", line 28, in _run
   execfile(path, globals(), globals())
 File "xxxxx/dist/myapp.app/Contents/Resources/myapp.py", line 1, in <module>
   import pygame
 File "pygame/__init__.pyc", line 94, in <module>
 File "pygame/base.pyc", line 18, in <module>
 File "pygame/base.pyc", line 15, in __load
ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/pygame/base.so' not found

It seems the base.so file is sought after somewhere in the system python path rather than in the app bundle (where the file actually does exist in "Contents/Resources/lib/python2.5/lib-dynload/pygame").

>>> print pygame.version.ver
1.9.0pre-svn1923

Bye
Ulrich