[Pythonmac-SIG] building bundles with setuptools, py2app, 64-bit python 2.6
Michael VanLandingham
m.vanland at gmail.com
Wed Aug 20 05:05:04 CEST 2008
I recently built a Python64.framework & interpreter from the 2.6 sources
(using Ronald O's recently recommended build settings), and then build
PyObjC. Because I got an error running PyObjC's build script, (setup tries
to pull down an URL that's non-existent:
http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg), I
built and installed setuptools from svn.python.org with/for my 4-way fat
python build.
I need to create 64-bit compatible versions of some PyObjC bundles that
we're using. However, when I tried to use it, like this:
$ /usr/local/python64 setup.py py2app
I got the error below. Which points to what looks like a problem in
setuptools. Can anyone offer any advice here? Maybe I need a less cutting
edge version of setuptools?
Is anyone using 64-bit python, PyObjC to build 64-bit or 4-way fat apps or
plugin bundles, and if so, how?
Thanks in advance,
Michael
here's the traceback:
------
running py2app
Traceback (most recent call last):
File "/Volumes/Sandbox/pyobjc/py2app/py2app/build_app.py", line 579, in
_run
self.run_normal()
File "/Volumes/Sandbox/pyobjc/py2app/py2app/build_app.py", line 631, in
run_normal
mf = self.get_modulefinder()
File "/Volumes/Sandbox/pyobjc/py2app/py2app/build_app.py", line 539, in
get_modulefinder
debug=debug,
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/find_modules.py",
line 255, in find_modules
find_needed_modules(mf, scripts, includes, packages)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/find_modules.py",
line 176, in find_needed_modules
mf.run_script(path)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 369, in run_script
self.scan_code(co, m)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 610, in scan_code
self._safe_import_hook(name, m, fromlist)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 540, in _safe_import_hook
mods = self.import_hook(name, caller)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 380, in import_hook
q, tail = self.find_head_package(parent, name)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 419, in find_head_package
q = self.import_module(head, qname, parent)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 493, in import_module
parent and parent.packagepath, parent)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 680, in find_module
fp, buf, stuff = find_module(name, path)
File "/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py",
line 114, in find_module
if isinstance(importer, pkg_resources.ImpWrapper):
AttributeError: 'module' object has no attribute 'ImpWrapper'
>
/Volumes/Sandbox/pyobjc/modulegraph/modulegraph/modulegraph.py(114)find_module()
-> if isinstance(importer, pkg_resources.ImpWrapper):
(Pdb) pkg_resources
<module 'pkg_resources' from
'/Library/Frameworks/Python64.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.7a1dev_r65222-py2.6.egg/pkg_resources.pyc'>
(Pdb) list
109 for entry in path:
110 importer = pkg_resources.get_importer(entry)
111 loader = importer.find_module(name)
112 if loader is None: continue
113
114 -> if isinstance(importer, pkg_resources.ImpWrapper):
115 filename = loader.filename
116 if filename.endswith('.pyc') or filename.endswith('.pyo'):
117 fp = open(filename, 'rb')
118 description = ('.pyc', 'rb', imp.PY_COMPILED)
119 return (fp, filename, description)
(Pdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080819/3b2b762c/attachment.htm>
More information about the Pythonmac-SIG
mailing list