[Pythonmac-SIG] [py2app] Program Creation fails. AttributeError: 'module' object has no attribute 'ImpWrapper'
PromeX
promex at gmail.com
Mon Jun 30 00:30:05 CEST 2008
I'm trying to use py2app to create a standalone app. It uses
WxWidgets. I had an older version that I had used before but
uninstalled it. I've tried using both the svn and easy_install on
py2app, modulegraph, macholib, and nothing worked.
I'm running 10.5.3. I've attached the output.
running py2app
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/build
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/build/bdist.macosx-10.3-i386
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/build/bdist.macosx-10.3-i386/python2.5-standalone
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/build/bdist.macosx-10.3-i386/python2.5-standalone/app
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/build/bdist.macosx-10.3-i386/python2.5-standalone/app/collect
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/build/bdist.macosx-10.3-i386/python2.5-standalone/app/temp
creating /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/
tmpSPXQ-F/dist
creating build/bdist.macosx-10.3-i386/python2.5-standalone/app/lib-
dynload
creating build/bdist.macosx-10.3-i386/python2.5-standalone/app/
Frameworks
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/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-packages/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-packages/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 176, in find_needed_modules
mf.run_script(path)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 369, in run_script
self.scan_code(co, m)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 638, in scan_code
self.scan_code(c, m)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 610, in scan_code
self._safe_import_hook(name, m, fromlist)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 540, in _safe_import_hook
mods = self.import_hook(name, caller)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 380, in import_hook
q, tail = self.find_head_package(parent, name)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 419, in find_head_package
q = self.import_module(head, qname, parent)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 493, in import_module
parent and parent.packagepath, parent)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 680, in find_module
fp, buf, stuff = find_module(name, path)
File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py",
line 114, in find_module
if isinstance(importer, pkg_resources.ImpWrapper):
AttributeError: 'module' object has no attribute 'ImpWrapper'
> /private/var/folders/ld/ld4P9LEsG6mY8GtV87UGp++++TI/-Tmp-/tmpSPXQ-F/
build/bdist.macosx-10.3-i386/egg/modulegraph/
modulegraph.py(114)find_module()
(Pdb) q
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/
py2applet", line 8, in <module>
load_entry_point('py2app==0.4.2', 'console_scripts', 'py2applet')()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/
script_py2applet.py", line 134, in main
build(args, scripts, data_files, options)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/
script_py2applet.py", line 187, in build
target.appdir,
AttributeError: 'Target' object has no attribute 'appdir'
More information about the Pythonmac-SIG
mailing list