[Pythonmac-SIG] macholib unknown load command: 2147483682

Emanuele Santos emanuelesantos at gmail.com
Tue Sep 8 23:56:56 CEST 2009


Hi,

I am trying to create a bundle using py2app dev on snow leopard and  
python 2.6 and I am getting the following error with macholib:

ValueError: Unknown load command: 2147483682

Is there anything I can do to fix it?

Part of the stack trace is shown below.

Thanks,

...
copying /usr/local/lib/libnetcdf_c++.5.dylib -> /Volumes/home/emanuele/ 
code/vistrails/trunk/dist/mac/dist/VisTrails.app/Contents/Frameworks
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
line 589, in _run
     self.run_normal()
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
line 660, in run_normal
     self.create_binaries(py_files, pkgdirs, extensions, loader_files)
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
line 777, 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  
68, in run_file
     self.scan_node(m)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachOGraph.py", line  
91, in scan_node
     m = self.load_file(filename, caller=node)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachOGraph.py", line  
78, in load_file
     return self.load_file(newname, caller=caller)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachOGraph.py", line  
80, in load_file
     m = self.createNode(MachO, name)
   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 63,  
in __init__
     self.load(file(filename, 'rb'))
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 78,  
in load
     self.load_header(fh, 0, size)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 108,  
in load_header
     hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 148,  
in __init__
     self.load(fh)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 180,  
in load
     raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 2147483682
 > /Volumes/home/emanuele/code/vistrails/trunk/dist/mac/build/ 
bdist.macosx-10.3-fat/egg/macholib/MachO.py(180)load()
-> raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))

-- Emanuele.





More information about the Pythonmac-SIG mailing list