Paul McNett wrote:
Hi,
I get a traceback running py2app with wxPython 2.8.9.2, but not with
wxPython 2.8.9.1. Here's the traceback:
copying
/Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses.5.dylib
->
<snip>
ValueError: Unknown load command: 27
>
/Users/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load()
(Pdb)
Everything is the same, except the wxPython version. Any ideas?
Paul
I recall getting an "Unknown load command" message from py2app after I
compiled the Reportlab extension *_renderPM.so* as a universal binary
under OS X 10.5 (Leopard) and tried to include it in the app. When I
compiled it again under 10.4 (Tiger), py2app (running under 10.5)
accepted it without any problem. I didn't (have time to) investigate any
further, only to note that the 10.5-built version was only 240 Kb
compared to 560Kb for the working, 10.4-built version.
Maybe there are extensions in wxPython 2.8.9.2 built using OS X 10.5
that were previously built using 10.4 and causing a similar problem?
Later....
I have just rerun py2app with my original 10.5-built *_renderPM.so*
and -apart from me using a slightly earlier version of py2app than Paul
- it produces the self same error word for word (see attachments).
Could it be *_renderPM.so* itself that is causing your error Paul?
---
Regards,
David Hughes
Forestfield Software
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.dev_r954-py2.5.egg/py2app/build_app.py",
line 530, in _run
self.run_normal()
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.dev_r954-py2.5.egg/py2app/build_app.py",
line 601, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.dev_r954-py2.5.egg/py2app/build_app.py",
line 709, in create_binaries
platfiles = mm.run()
File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line
102, in run
mm.run_file(fn)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 66, in
run_file
m = self.createNode(MachO, pathname)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 23,
in createNode
res = super(FilteredMachOGraph, self).createNode(cls, name)
File "build/bdist.macosx-10.3-i386/egg/altgraph/ObjectGraph.py", line 148, in
createNode
m = cls(name, *args, **kw)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 61, in
__init__
self.load(file(filename, 'rb'))
File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 71, in load
self.load_fat(fh)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 82, in
load_fat
self.load_header(fh, arch.offset, arch.size)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 106, in
load_header
hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 146, in
__init__
self.load(fh)
File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 178, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 27
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py",
line 560, in _run
self.run_normal()
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py",
line 631, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py",
line 744, in create_binaries
platfiles = mm.run()
File "build/bdist.macosx-10.3-fat/egg/macholib/MachOStandalone.py", line 102,
in run
mm.run_file(fn)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachOGraph.py", line 66, in
run_file
m = self.createNode(MachO, pathname)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachOStandalone.py", line 23,
in createNode
res = super(FilteredMachOGraph, self).createNode(cls, name)
File "build/bdist.macosx-10.3-fat/egg/altgraph/ObjectGraph.py", line 148, in
createNode
m = cls(name, *args, **kw)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 61, in __init__
self.load(file(filename, 'rb'))
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 71, in load
self.load_fat(fh)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 82, in load_fat
self.load_header(fh, arch.offset, arch.size)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 106, in
load_header
hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 146, in
__init__
self.load(fh)
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 178, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 27
> /Users/PyDevSrc/Dp6Mac_V650/build/bdist.macosx-10.3-fat/egg/macholib/MachO.py(178)load()
(Pdb)
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig