Problem running PyObjC/py2app app on machine without PyObjC installed
Zachery Bir <[email protected]> Thu, 9 May 2013 14:14:17 -0400
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey, all. Long time no see.
So, I've revived one of my PyObjC apps (Zem), but am running into problems getting the resulting app to launch on systems that don't already have PyObjC installed. This hasn't so far happened with my other PyObjC apps, so I'm wondering if I'm just doing something wrong.
Here's a link to the py2app-built binary: http://swng.it/nP7QK
Here's the code: https://github.com/orangutango/Zem/
I could tell that some things had changed in the PyObjC/py2app worlds since the last time I heavily used them.
I built this bundle the standard way:
$ python setup.py py2app --iconfile Resources/Zem.icns
(Incidentally, I'm not sure why it doesn't pick up on my Info.plist entry for CFBundleIconFile, but whatever)
The error I get on machines without PyObjC installed is:
Zacherys-Mac:~ zbir$ Downloads/Zem.app/Contents/MacOS/Zem
Traceback (most recent call last):
File "/Users/zbir/Downloads/Zem.app/Contents/Resources/__boot__.py", line 316, in <module>
_run()
File "/Users/zbir/Downloads/Zem.app/Contents/Resources/__boot__.py", line 311, in _run
exec(compile(source, path, 'exec'), globals(), globals())
File "/Users/zbir/Downloads/Zem.app/Contents/Resources/ZemAppDelegate.py", line 12, in <module>
from PyObjCTools import AppHelper
File "PyObjCTools/AppHelper.pyc", line 14, in <module>
File "AppKit/__init__.pyc", line 43, in <module>
File "AppKit/_AppKit.pyc", line 14, in <module>
File "AppKit/_AppKit.pyc", line 10, in __load
ImportError: dlopen(/Users/zbir/Downloads/Zem.app/Contents/Resources/lib/python2.7/lib-dynload/AppKit/_AppKit.so, 2): Symbol not found: _OBJC_CLASS_$_NSObject
Referenced from: /Users/zbir/Downloads/Zem.app/Contents/Resources/lib/python2.7/lib-dynload/AppKit/_AppKit.so
Expected in: /usr/lib/libobjc.A.dylib
in /Users/zbir/Downloads/Zem.app/Contents/Resources/lib/python2.7/lib-dynload/AppKit/_AppKit.so
2013-05-09 13:54:37.926 Zem[347:707] Zem Error
Thanks,
Zac
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may