View Single Post
Old 01-19-2010, 01:40 AM   #19
benlau
Enthusiast
benlau has a complete set of Star Wars action figures.benlau has a complete set of Star Wars action figures.benlau has a complete set of Star Wars action figures.
 
Posts: 29
Karma: 260
Join Date: Dec 2009
Device: Sony Reader PRS-600
I have no lucky to build dmg using python qt...

Code:
copying /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Makefile -> /Users/benlau/src/prsnotereader/dist/prsnote.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config
Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/py2app/build_app.py", line 589, in _run
    self.run_normal()
  File "/opt/local/lib/python2.5/site-packages/py2app/build_app.py", line 660, in run_normal
    self.create_binaries(py_files, pkgdirs, extensions, loader_files)
  File "/opt/local/lib/python2.5/site-packages/py2app/build_app.py", line 768, in create_binaries
    mm.mm.run_file(runtime)
  File "/opt/local/lib/python2.5/site-packages/macholib/MachOGraph.py", line 66, in run_file
    m = self.createNode(MachO, pathname)
  File "/opt/local/lib/python2.5/site-packages/macholib/MachOStandalone.py", line 23, in createNode
    res = super(FilteredMachOGraph, self).createNode(cls, name)
  File "/opt/local/lib/python2.5/site-packages/altgraph/ObjectGraph.py", line 148, in createNode
    m = cls(name, *args, **kw)
  File "/opt/local/lib/python2.5/site-packages/macholib/MachO.py", line 63, in __init__
    self.load(file(filename, 'rb'))
  File "/opt/local/lib/python2.5/site-packages/macholib/MachO.py", line 73, in load
    self.load_fat(fh)
  File "/opt/local/lib/python2.5/site-packages/macholib/MachO.py", line 81, in load_fat
    self.fat = fat_header.from_fileobj(fh)
  File "/opt/local/lib/python2.5/site-packages/macholib/ptypes.py", line 44, in from_fileobj
    return cls.from_str(f.read(cls._size_), **kw)
  File "/opt/local/lib/python2.5/site-packages/macholib/ptypes.py", line 48, in from_str
    return cls.from_tuple(struct.unpack(endian + cls._format_, s), **kw)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/struct.py", line 87, in unpack
    return o.unpack(s)
error: unpack requires a string argument of length 8
> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/struct.py(87)unpack()
-> return o.unpack(s)
Environment: Snowleopard + macports 1.8.2 (changed to use python 2.6 will raise another problem...)
benlau is offline   Reply With Quote