[Pythonmac-SIG] py2app/64-bit/Mach-O Headers

Ronald Oussoren ronaldoussoren at mac.com
Wed Oct 7 08:07:00 CEST 2009


On 6 Oct, 2009, at 23:29, Kevin Walzer wrote:

> I tried again, using the macholib from svn trunk and specifying  
> python-64 instead of python as the interpreter. Here's the error I  
> get:
>
> linking /Users/kevin/Programming/phynchronicity/dist/ 
> Phynchronicity.app/Contents/Frameworks/Python64.framework/Versions/ 
> Current -> 2.6
> Traceback (most recent call last):
>  File "/Library/Frameworks/Python64.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/Python64.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/Python64.framework/Versions/2.6/lib/ 
> python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
> line 768, in create_binaries
>    mm.mm.run_file(runtime)
>  File "build/bdist.macosx-10.5-universal/egg/macholib/ 
> MachOGraph.py", line 66, in run_file
>    m = self.createNode(MachO, pathname)
>  File "build/bdist.macosx-10.5-universal/egg/macholib/ 
> MachOStandalone.py", line 23, in createNode
>    res = super(FilteredMachOGraph, self).createNode(cls, name)
>  File "build/bdist.macosx-10.5-universal/egg/altgraph/ 
> ObjectGraph.py", line 148, in createNode
>    m = cls(name, *args, **kw)
>  File "build/bdist.macosx-10.5-universal/egg/macholib/MachO.py",  
> line 63, in __init__
>    self.load(file(filename, 'rb'))
>  File "build/bdist.macosx-10.5-universal/egg/macholib/MachO.py",  
> line 73, in load
>    self.load_fat(fh)
>  File "build/bdist.macosx-10.5-universal/egg/macholib/MachO.py",  
> line 81, in load_fat
>    self.fat = fat_header.from_fileobj(fh)
>  File "build/bdist.macosx-10.5-universal/egg/macholib/ptypes.py",  
> line 44, in from_fileobj
>    return cls.from_str(f.read(cls._size_), **kw)
>  File "build/bdist.macosx-10.5-universal/egg/macholib/ptypes.py",  
> line 48, in from_str
>    return cls.from_tuple(struct.unpack(endian + cls._format_, s),  
> **kw)
> error: unpack requires a string argument of length 8
> > /Users/kevin/Programming/phynchronicity/build/bdist.macosx-10.5- 
> universal/egg/macholib/ptypes.py(48)from_str()
> -> return cls.from_tuple(struct.unpack(endian + cls._format_, s),  
> **kw)

Time to install a 64-bit build myself, I've been running the 32-bit  
only the last couple of weeks due to the 2.6.3 release.

Ronald

>
>
> Any ideas?
>
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20091007/96ac4281/attachment-0001.bin>


More information about the Pythonmac-SIG mailing list