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

Xiao Yu news at xiao-yu.com
Tue Feb 16 23:18:31 CET 2010


Just tried again. Python from python.org and py2app, all built from source. Python is built with i386 and x86_64 and as a framework. 

copying /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile -> /Users/xiao/Development/Python/Curses/dist/test.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.4.3-py2.7.egg/py2app/build_app.py", line 589, in _run
    self.run_normal()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.4.3-py2.7.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.7/lib/python2.7/site-packages/py2app-0.4.3-py2.7.egg/py2app/build_app.py", line 768, in create_binaries
    mm.mm.run_file(runtime)
  File "build/bdist.macosx-10.5-intel/egg/macholib/MachOGraph.py", line 66, in run_file
    m = self.createNode(MachO, pathname)
  File "build/bdist.macosx-10.5-intel/egg/macholib/MachOStandalone.py", line 23, in createNode
    res = super(FilteredMachOGraph, self).createNode(cls, name)
  File "build/bdist.macosx-10.5-intel/egg/altgraph/ObjectGraph.py", line 148, in createNode
    m = cls(name, *args, **kw)
  File "build/bdist.macosx-10.5-intel/egg/macholib/MachO.py", line 63, in __init__
    self.load(file(filename, 'rb'))
  File "build/bdist.macosx-10.5-intel/egg/macholib/MachO.py", line 73, in load
    self.load_fat(fh)
  File "build/bdist.macosx-10.5-intel/egg/macholib/MachO.py", line 81, in load_fat
    self.fat = fat_header.from_fileobj(fh)
  File "build/bdist.macosx-10.5-intel/egg/macholib/ptypes.py", line 44, in from_fileobj
    return cls.from_str(f.read(cls._size_), **kw)
  File "build/bdist.macosx-10.5-intel/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/xiao/Development/Python/Curses/build/bdist.macosx-10.5-intel/egg/macholib/ptypes.py(48)from_str()
-> return cls.from_tuple(struct.unpack(endian + cls._format_, s), **kw)

Still a similar problem. The program is just print "hello". Anyone else have this problem?

Xiao

On 16/02/2010, at 12:33 PM, Aahz wrote:

> On Sun, Feb 14, 2010, Xiao Yu wrote:
>> 
>> I thought I might have messed up my Python install but now I'm pretty
>> sure I have a standard MacPort's Python 2.6.4 and py2app 4.3. I tried
>> both export VERSIONER_PYTHON_PREFER_32_BIT=yes and no. Any pointers to
>> building a 32-bit program?
> 
> Why not use python.org's 2.6.4?
> -- 
> Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/
> 
> "At Resolver we've found it useful to short-circuit any doubt and just        
> refer to comments in code as 'lies'. :-)"
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG



More information about the Pythonmac-SIG mailing list