[Pythonmac-SIG] py2app and Adobe AIR problem
Thijs Triemstra|Collab
lists at collab.nl
Thu Jun 28 00:56:16 CEST 2007
hi,
I'm trying to bundle the Adobe AIR framework and my Python
application with py2app. But I'm getting the error below as soon as
macholib (1.1 or 1.2-dev) starts to analyze the executable in the AIR
framework.
[exec] copying /Developer/SDKs/flex3/runtimes/air/mac/Adobe
AIR.framework/Adobe AIR -> /Users/thijstriemstra/Sites/software/rtmpy/
samples/branches/rtmpyapp-py2app/dist/RTMPyApp.app/Contents/Frameworks
[exec] Traceback (most recent call last):
[exec] 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 548, in _run
[exec] self.run_normal()
[exec] 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 619, in run_normal
[exec] self.create_binaries(py_files, pkgdirs, extensions,
loader_files)
[exec] 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 731, in create_binaries
[exec] mm.mm.run_file(fmwk)
[exec] File "/private/tmp/trunk/macholib/MachOGraph.py", line
66, in run_file
[exec] m = self.createNode(MachO, pathname)
[exec] File "/private/tmp/trunk/macholib/MachOStandalone.py",
line 23, in createNode
[exec] res = super(FilteredMachOGraph, self).createNode
(cls, name)
[exec] File "build/bdist.macosx-10.3-fat/egg/altgraph/
ObjectGraph.py", line 148, in createNode
[exec] m = cls(name, *args, **kw)
[exec] File "/private/tmp/trunk/macholib/MachO.py", line 61,
in __init__
[exec] self.load(file(filename, 'rb'))
[exec] File "/private/tmp/trunk/macholib/MachO.py", line 71,
in load
[exec] self.load_fat(fh)
[exec] File "/private/tmp/trunk/macholib/MachO.py", line 82,
in load_fat
[exec] self.load_header(fh, arch.offset, arch.size)
[exec] File "/private/tmp/trunk/macholib/MachO.py", line 106,
in load_header
[exec] hdr = MachOHeader(self, fh, offset, size, magic,
hdr, endian)
[exec] File "/private/tmp/trunk/macholib/MachO.py", line 146,
in __init__
[exec] self.load(fh)
[exec] File "/private/tmp/trunk/macholib/MachO.py", line 178,
in load
[exec] raise ValueError("Unknown load command: %d" %
(cmd_load.cmd,))
[exec] ValueError: Unknown load command: 27
[exec] > /private/tmp/trunk/macholib/MachO.py(178)load()
[exec] -> raise ValueError("Unknown load command: %d" %
(cmd_load.cmd,))
[exec] (Pdb)
The .app file is created but I'm not sure if it will work with this
error.
This is how the setup.cfg looks like:
[py2app]
argv-emulation=1
argv-inject=server
optimize=2
plist=mac/Info.plist
includes=twisted
xref=1
debug-skip-macholib=0
Any ideas?
Regards,
Thijs
More information about the Pythonmac-SIG
mailing list