[Pythonmac-SIG] Hello World Cross Platform Problems

Ken Mankoff mankoff at gmail.com
Mon Oct 6 20:48:08 CEST 2008


Hi Chris

On Fri, 3 Oct 2008, Christopher Barker wrote:
> Ken Mankoff wrote:
>> I'm trying to get a Hello World application in wxWidgets as a 
>> stand-alone app running on multiple machines via py2app.
>
> Just so you know -- you are staying into a lot of new territory 
> here. I don't think either of py2app or wxPython have been tested 
> with Python2.6
>
> Do you really need 2.6? This is going to be a whole lot easier if 
> you just stuck with python,.org's 2.5.2 build.
>
> That being said, thanks for being a pioneer!

Thanks but no thanks! I'm going to try this again with python 2.5.2.

>
> By the way, just to keep things clean, I'd try to py2app a little 
> app that doesn't use wx first.
>

I've cleaned out everything and will skip wxWidgets for now. I have 
the following python script. Is this the type of little app you 
refer to?

#!/opt/python/2.5.2/bin/python

def main():
   print 'Hello World'

if __name__ == '__main__':
   main()


If I run "py2applet hello.py" I get the following errors during the 
build process. This is on the development machines, so I'm not even 
on a different architecture yet.

copying 
/opt/python/2.5.2/Framework/Python.framework/Versions/2.5/Resources/version.plist 
-> 
/private/var/folders/tc/tcALs6cIGAuSq8EZ+n1WqU+++TI/-Tmp-/tmpV8oWjJ/dist/hello.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources
Traceback (most recent call last):
   File 
"/opt/python/2.5.2/Framework/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", 
line 548, in _run
     self.run_normal()
   File 
"/opt/python/2.5.2/Framework/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", 
line 619, in run_normal
     self.create_binaries(py_files, pkgdirs, extensions, 
loader_files)
   File 
"/opt/python/2.5.2/Framework/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", 
line 723, in create_binaries
     mm.mm.run_file(runtime)
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", 
line 66, in run_file
     m = self.createNode(MachO, pathname)
   File 
"build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 
23, in createNode
     res = super(FilteredMachOGraph, self).createNode(cls, name)
   File "build/bdist.macosx-10.3-i386/egg/altgraph/ObjectGraph.py", 
line 148, in createNode
     m = cls(name, *args, **kw)
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 
61, in __init__
     self.load(file(filename, 'rb'))
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 
71, in load
     self.load_fat(fh)
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 
82, in load_fat
     self.load_header(fh, arch.offset, arch.size)
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 
106, in load_header
     hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 
146, in __init__
     self.load(fh)
   File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 
178, in load
     raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 27
> 
/private/var/folders/tc/tcALs6cIGAuSq8EZ+n1WqU+++TI/-Tmp-/tmpV8oWjJ/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load()
(Pdb)







    -k.



More information about the Pythonmac-SIG mailing list