py2app is broken?

Ben Lau xbenlau at gmail.com
Mon Jan 25 20:34:11 PST 2010


Hi ,

    I am using macports 1.8.2 on SnowLeopard, and I would like to
build a dmg of a python program , but it do not work.

Repeat instruction:

$ touch test.py
$ py2applet --make-setup test.py
$ python2.5 setup.py py2app

The process dead with the message of "

"  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()
"

(The compete log has been attached in the email)

Is the py2app package broken? Or I have made something wrong with my setup?

p.s it is the installed packages in my system:

$ port installed | grep py2app
  py-py2app @0.4.3_0 (active)
  py25-py2app-devel @0.4.4_0 (active)
  py26-py2app-devel @0.4.4_0 (active)
-------------- next part --------------
running py2app
*** filtering dependencies ***
196 total
24 filtered
4 orphaned
172 remaining
*** create binaries ***
skipping python loader for extension '_AE'
skipping python loader for extension '_File'
skipping python loader for extension '_codecs_cn'
skipping python loader for extension '_codecs_hk'
skipping python loader for extension '_codecs_iso2022'
skipping python loader for extension '_codecs_jp'
skipping python loader for extension '_codecs_kr'
skipping python loader for extension '_codecs_tw'
skipping python loader for extension '_multibytecodec'
skipping python loader for extension '_struct'
skipping python loader for extension '_weakref'
skipping python loader for extension 'array'
skipping python loader for extension 'binascii'
skipping python loader for extension 'bz2'
skipping python loader for extension 'cStringIO'
skipping python loader for extension 'itertools'
skipping python loader for extension 'strop'
skipping python loader for extension 'unicodedata'
skipping python loader for extension 'zlib'
*** byte compile python files ***
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/test.py to test.pyc
skipping byte-compilation of /opt/local/lib/python2.5/StringIO.py to StringIO.pyc
skipping byte-compilation of /opt/local/lib/python2.5/UserDict.py to UserDict.pyc
skipping byte-compilation of /opt/local/lib/python2.5/base64.py to base64.pyc
skipping byte-compilation of /opt/local/lib/python2.5/codecs.py to codecs.pyc
skipping byte-compilation of /opt/local/lib/python2.5/copy.py to copy.pyc
skipping byte-compilation of /opt/local/lib/python2.5/copy_reg.py to copy_reg.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/__init__.py to encodings/__init__.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/aliases.py to encodings/aliases.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/ascii.py to encodings/ascii.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/base64_codec.py to encodings/base64_codec.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/big5.py to encodings/big5.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/big5hkscs.py to encodings/big5hkscs.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/bz2_codec.py to encodings/bz2_codec.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/charmap.py to encodings/charmap.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp037.py to encodings/cp037.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1006.py to encodings/cp1006.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1026.py to encodings/cp1026.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1140.py to encodings/cp1140.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1250.py to encodings/cp1250.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1251.py to encodings/cp1251.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1252.py to encodings/cp1252.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1253.py to encodings/cp1253.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1254.py to encodings/cp1254.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1255.py to encodings/cp1255.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1256.py to encodings/cp1256.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1257.py to encodings/cp1257.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp1258.py to encodings/cp1258.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp424.py to encodings/cp424.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp437.py to encodings/cp437.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp500.py to encodings/cp500.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp737.py to encodings/cp737.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp775.py to encodings/cp775.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp850.py to encodings/cp850.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp852.py to encodings/cp852.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp855.py to encodings/cp855.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp856.py to encodings/cp856.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp857.py to encodings/cp857.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp860.py to encodings/cp860.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp861.py to encodings/cp861.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp862.py to encodings/cp862.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp863.py to encodings/cp863.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp864.py to encodings/cp864.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp865.py to encodings/cp865.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp866.py to encodings/cp866.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp869.py to encodings/cp869.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp874.py to encodings/cp874.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp875.py to encodings/cp875.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp932.py to encodings/cp932.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp949.py to encodings/cp949.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/cp950.py to encodings/cp950.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/euc_jis_2004.py to encodings/euc_jis_2004.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/euc_jisx0213.py to encodings/euc_jisx0213.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/euc_jp.py to encodings/euc_jp.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/euc_kr.py to encodings/euc_kr.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/gb18030.py to encodings/gb18030.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/gb2312.py to encodings/gb2312.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/gbk.py to encodings/gbk.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/hex_codec.py to encodings/hex_codec.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/hp_roman8.py to encodings/hp_roman8.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/hz.py to encodings/hz.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/idna.py to encodings/idna.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_jp.py to encodings/iso2022_jp.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_jp_1.py to encodings/iso2022_jp_1.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_jp_2.py to encodings/iso2022_jp_2.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_jp_2004.py to encodings/iso2022_jp_2004.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_jp_3.py to encodings/iso2022_jp_3.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_jp_ext.py to encodings/iso2022_jp_ext.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso2022_kr.py to encodings/iso2022_kr.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_1.py to encodings/iso8859_1.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_10.py to encodings/iso8859_10.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_11.py to encodings/iso8859_11.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_13.py to encodings/iso8859_13.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_14.py to encodings/iso8859_14.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_15.py to encodings/iso8859_15.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_16.py to encodings/iso8859_16.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_2.py to encodings/iso8859_2.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_3.py to encodings/iso8859_3.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_4.py to encodings/iso8859_4.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_5.py to encodings/iso8859_5.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_6.py to encodings/iso8859_6.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_7.py to encodings/iso8859_7.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_8.py to encodings/iso8859_8.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/iso8859_9.py to encodings/iso8859_9.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/johab.py to encodings/johab.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/koi8_r.py to encodings/koi8_r.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/koi8_u.py to encodings/koi8_u.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/latin_1.py to encodings/latin_1.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_arabic.py to encodings/mac_arabic.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_centeuro.py to encodings/mac_centeuro.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_croatian.py to encodings/mac_croatian.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_cyrillic.py to encodings/mac_cyrillic.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_farsi.py to encodings/mac_farsi.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_greek.py to encodings/mac_greek.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_iceland.py to encodings/mac_iceland.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_latin2.py to encodings/mac_latin2.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_roman.py to encodings/mac_roman.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_romanian.py to encodings/mac_romanian.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mac_turkish.py to encodings/mac_turkish.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/mbcs.py to encodings/mbcs.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/palmos.py to encodings/palmos.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/ptcp154.py to encodings/ptcp154.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/punycode.py to encodings/punycode.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/quopri_codec.py to encodings/quopri_codec.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/raw_unicode_escape.py to encodings/raw_unicode_escape.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/rot_13.py to encodings/rot_13.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/shift_jis.py to encodings/shift_jis.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/shift_jis_2004.py to encodings/shift_jis_2004.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/shift_jisx0213.py to encodings/shift_jisx0213.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/string_escape.py to encodings/string_escape.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/tis_620.py to encodings/tis_620.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/undefined.py to encodings/undefined.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/unicode_escape.py to encodings/unicode_escape.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/unicode_internal.py to encodings/unicode_internal.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/utf_16.py to encodings/utf_16.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/utf_16_be.py to encodings/utf_16_be.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/utf_16_le.py to encodings/utf_16_le.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/utf_7.py to encodings/utf_7.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/utf_8.py to encodings/utf_8.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/utf_8_sig.py to encodings/utf_8_sig.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/uu_codec.py to encodings/uu_codec.pyc
skipping byte-compilation of /opt/local/lib/python2.5/encodings/zlib_codec.py to encodings/zlib_codec.pyc
skipping byte-compilation of /opt/local/lib/python2.5/getopt.py to getopt.pyc
skipping byte-compilation of /opt/local/lib/python2.5/linecache.py to linecache.pyc
skipping byte-compilation of /opt/local/lib/python2.5/macpath.py to macpath.pyc
skipping byte-compilation of /opt/local/lib/python2.5/os.py to os.pyc
skipping byte-compilation of /opt/local/lib/python2.5/plat-mac/Carbon/AE.py to Carbon/AE.pyc
skipping byte-compilation of /opt/local/lib/python2.5/plat-mac/Carbon/AppleEvents.py to Carbon/AppleEvents.pyc
skipping byte-compilation of /opt/local/lib/python2.5/plat-mac/Carbon/Events.py to Carbon/Events.pyc
skipping byte-compilation of /opt/local/lib/python2.5/plat-mac/Carbon/Evt.py to Carbon/Evt.pyc
skipping byte-compilation of /opt/local/lib/python2.5/plat-mac/Carbon/File.py to Carbon/File.pyc
skipping byte-compilation of /opt/local/lib/python2.5/plat-mac/Carbon/__init__.py to Carbon/__init__.pyc
skipping byte-compilation of /opt/local/lib/python2.5/popen2.py to popen2.pyc
skipping byte-compilation of /opt/local/lib/python2.5/posixpath.py to posixpath.pyc
skipping byte-compilation of /opt/local/lib/python2.5/quopri.py to quopri.pyc
skipping byte-compilation of /opt/local/lib/python2.5/re.py to re.pyc
skipping byte-compilation of /opt/local/lib/python2.5/repr.py to repr.pyc
skipping byte-compilation of /opt/local/lib/python2.5/site-packages/py2app/bootstrap/argv_emulation.py to argv_emulation.pyc
skipping byte-compilation of /opt/local/lib/python2.5/site-packages/py2app/bootstrap/boot_app.py to boot_app.pyc
skipping byte-compilation of /opt/local/lib/python2.5/site-packages/py2app/bootstrap/chdir_resource.py to chdir_resource.pyc
skipping byte-compilation of /opt/local/lib/python2.5/site-packages/py2app/bootstrap/disable_linecache.py to disable_linecache.pyc
skipping byte-compilation of /opt/local/lib/python2.5/sre.py to sre.pyc
skipping byte-compilation of /opt/local/lib/python2.5/sre_compile.py to sre_compile.pyc
skipping byte-compilation of /opt/local/lib/python2.5/sre_constants.py to sre_constants.pyc
skipping byte-compilation of /opt/local/lib/python2.5/sre_parse.py to sre_parse.pyc
skipping byte-compilation of /opt/local/lib/python2.5/stat.py to stat.pyc
skipping byte-compilation of /opt/local/lib/python2.5/string.py to string.pyc
skipping byte-compilation of /opt/local/lib/python2.5/stringprep.py to stringprep.pyc
skipping byte-compilation of /opt/local/lib/python2.5/struct.py to struct.pyc
skipping byte-compilation of /opt/local/lib/python2.5/traceback.py to traceback.pyc
skipping byte-compilation of /opt/local/lib/python2.5/types.py to types.pyc
skipping byte-compilation of /opt/local/lib/python2.5/warnings.py to warnings.pyc
skipping byte-compilation of /opt/local/lib/python2.5/weakref.py to weakref.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_AE.py to _AE.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_File.py to _File.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_codecs_cn.py to _codecs_cn.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_codecs_hk.py to _codecs_hk.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_codecs_iso2022.py to _codecs_iso2022.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_codecs_jp.py to _codecs_jp.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_codecs_kr.py to _codecs_kr.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_codecs_tw.py to _codecs_tw.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_multibytecodec.py to _multibytecodec.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_struct.py to _struct.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/_weakref.py to _weakref.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/array.py to array.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/binascii.py to binascii.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/bz2.py to bz2.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/cStringIO.py to cStringIO.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/itertools.py to itertools.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/strop.py to strop.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/unicodedata.py to unicodedata.pyc
skipping byte-compilation of /Users/benlau/src/junkcode/python/mac/build/bdist.macosx-10.6-i386/python2.5-standalone/app/temp/zlib.py to zlib.pyc
*** creating application bundle: test ***
copying build/bdist.macosx-10.6-i386/python2.5-standalone/app/site-packages.zip -> /Users/benlau/src/junkcode/python/mac/dist/test.app/Contents/Resources/lib/python2.5
copying /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python -> /Users/benlau/src/junkcode/python/mac/dist/test.app/Contents/Frameworks/Python.framework/Versions/2.5
copying /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Info.plist -> /Users/benlau/src/junkcode/python/mac/dist/test.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources
copying /opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h -> /Users/benlau/src/junkcode/python/mac/dist/test.app/Contents/Frameworks/Python.framework/Versions/2.5/include/python2.5
copying /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Makefile -> /Users/benlau/src/junkcode/python/mac/dist/test.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)
(Pdb) (Pdb) 


More information about the macports-users mailing list