[Pythonmac-SIG] py2app KeyError

Akos Polster akos at pipacs.com
Thu Mar 19 19:27:16 CET 2009


Hi,

I'm getting KeyError in py2app since I've upgraded Qt to 4.5 plus sip and PyQt to the latest nightbuilds. The OS is 10.4,11. This is of course most likely related to the changes in Qt etc. but I don't even know where to look.

Any ideas?

Thanks

  ~ Akos.


linking /Users/polster/workspace/vpntool/dist/vpntool.app/Contents/Frameworks/QtGui.framework/Versions/Current -> 4
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 587, 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 658, 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.4.2-py2.5.egg/py2app/build_app.py", line 775, in create_binaries
     platfiles = mm.run()
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachOStandalone.py", line 108, in run
     mm.run_file(fn, caller=ref)
   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 63, in __init__
     self.load(file(filename, 'rb'))
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 73, in load
     self.load_fat(fh)
   File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 84, in load_fat
     self.load_header(fh, arch.offset, arch.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 169, in load
     self.filetype = MH_FILETYPE_SHORTNAMES[header.filetype]
KeyError: 10L
> /Users/polster/workspace/vpntool/build/bdist.macosx-10.3-fat/egg/macholib/MachO.py(169)load()




-- 
Akos Polster
mailto:akos at pipacs.com
http://akos.pipacs.com


More information about the Pythonmac-SIG mailing list