[Pythonmac-SIG] Getting py2app to work with svn 1.5.1?
Russell E. Owen
rowen at u.washington.edu
Thu Aug 21 01:34:51 CEST 2008
I just realized I can no longer build my Python application using py2app
since upgrading to svn 1.5.1. The application uses Tkinter, matplotlib
and Image (PIL). I am on MacOS X 10.4.11 using Python 2.5.2 from
python.org and ActiveState Tcl/Tk 8.4.19.
The first symptom were well-known problems "Unknown load command: 27"
and "global name 'log' is not defined". After reading these:
<http://bugs.python.org/setuptools/issue4>
<http://www.nabble.com/-py2app---pygame--can't-build-my-app-td17936557.ht
ml>
and trying various fixes I got rid of those problems and ended up with a
new one (more below) which I've not found a solution for.
I decided to try a clean install of easy_install and py2app so:
- Delete everything from site-packages related to easy_install and
py2app including bdist_mpkg , macholib and modulegraph and setuptools.
- Download ez_setup.py
$ python ez_setup.py
This installed setuptools==0.6c8
$ easy_install py2app
This installed:
- py2app 0.3.6
- bdist-mpkg 0.4.3
- modulegraph 0.7
py2app fails to build my app with the following error:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 548, in _run
self.run_normal()
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 600, in
run_normal
mf = self.get_modulefinder()
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 508, in
get_modulefinder
debug=debug,
File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py",
line 243, in find_modules
find_needed_modules(mf, scripts, includes, packages)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py",
line 179, in find_needed_modules
path = m.packagepath[0]
TypeError: 'NoneType' object is unsubscriptable
I then tried installing the dev version of py2app:
$ easy_install py2app==dev
complains about modulegraph so:
$ easy_install modulegraph==dev
But I still get the same error (and I'd rather not use these dev
versions without some idea if they are stable and recommended).
I have not located this one on google (except one unanswered query from
a wx user from May). Any ideas?
-- Russell
More information about the Pythonmac-SIG
mailing list