modulegraph 0.7.2.dev_r21-py2.5 has the following bug (which may be in other versions as well) which causes this error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 579, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 631, in run_normal mf = self.get_modulefinder() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 539, in get_modulefinder debug=debug, File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py", line 255, in find_modules find_needed_modules(mf, scripts, includes, packages) File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py", line 190, in find_needed_modules path = m.packagepath[0] TypeError: 'NoneType' object is unsubscriptable
in modulegraph.py find_needed_modules at line 189: if m is not None: path = m.packagepath[0] in this case m is not None, but m.packagepath is None, which causes the crash. I don't know if the bug is that m.packagepath is None, or that this is not being properly handled. What triggered this bug was that a required package was missing. (I had unzipped my matplotlib egg, but forgot to add a .pth file). -- Russell _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig