[Pythonmac-SIG] [py2app] [pygame] can't build my app

Christopher Barker Chris.Barker at noaa.gov
Thu Jun 19 18:40:52 CEST 2008


(do try to keep this on the pythonmac list....)

Pierre-Alain Dorange wrote:
> Ok i follow the step from py2app documentation :
> - uninstall py2app
> - get package with easy_install (it find 0.3.6 and install fine)
> 
> At that step running my setup.py fail with the same error but at a 
> different step, in the loading section (see log-1).
> 
> I then test easy_install macholib==dev but it also fail... (see log-2)

darn. Maybe Ronald will chime in -- it's worth a try.

 > Searching for macholib==dev
 > Reading http://pypi.python.org/simple/macholib/
 > Reading http://undefined.org/python/#macholib
 > Best match: macholib dev
 > Downloading
 > http://svn.pythonmac.org/macholib/macholib/trunk#egg=macholib-dev
 > Doing subversion checkout from
 > http://svn.pythonmac.org/macholib/macholib/trunk to
 > /tmp/easy_install-l3o8mp/trunk
 > sh: line 1: svn: command not found
 > Processing trunk
 > error: Couldn't find a setup script in /tmp/easy_install-l3o8mp/trunk

This looks like it failed to properly install the dev version of 
macholib -- try getting SVN installed (see below) then try again.

> I'll do some test with the SVN Trunk version, but i don't know how to 
> begin, do i have to download each file one by one 
> from http://svn.pythonmac.org/py2app/py2app/trunk/ ? 

no, you can download the whole thing with an SVN client. I think the 
command line client comes with Apple's developer tools (I'm not sure how 
I installed it, it's been a while, but if you don't have it, you can 
try: http://www.collab.net/downloads/community/). Once you have an svn 
client, you should be able to do:

$ svn checkout http://svn.pythonmac.org/py2app/py2app/trunk/ pyappSVN

You could also use a GUI client, like

syncrosvn: http://www.syncrosvnclient.com/
svnX: http://www.lachoseinteractive.net/en/community/subversion/svnx
SCPlugin: http://scplugin.tigris.org/
ZigVersion: http://zigzig.com/
RapidSVN: http://rapidsvn.tigris.org/
SmartSVN: http://www.syntevo.com/smartsvn/index.html
Versions: http://www.versionsapp.com/

I use the command line, so I have no opinion about any of these.

> Thanks
> 
> log-1
> --------------------------------------------------
> copying 
> /Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses.5.dylib 
> -> 
> /Volumes/Documents/PAD/Dev/PyGame/MicroWar/Source/dist/MicroWar.app/Contents/Frameworks
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/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 
> "/Library/Frameworks/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 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", 
> line 732, in create_binaries
>     platfiles = mm.run()
>   File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", 
> line 102, in run
>     mm.run_file(fn)
>   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
>> /Volumes/Documents/PAD/Dev/PyGame/MicroWar/Source/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load()
> 
> 
> log-2
> --------------------------------------------------
> Searching for macholib==dev
> Reading http://pypi.python.org/simple/macholib/
> Reading http://undefined.org/python/#macholib
> Best match: macholib dev
> Downloading 
> http://svn.pythonmac.org/macholib/macholib/trunk#egg=macholib-dev
> Doing subversion checkout from 
> http://svn.pythonmac.org/macholib/macholib/trunk to 
> /tmp/easy_install-l3o8mp/trunk
> sh: line 1: svn: command not found
> Processing trunk
> error: Couldn't find a setup script in /tmp/easy_install-l3o8mp/trunk
> 
> -- 
> Pierre-Alain Dorange
> 
> Blog Citoyen de Cognac             <http://cognac-citoyen.blogspot.com/>
> Le Retour de l'Autruche            <http://www.leretourdelautruche.com/>
> 

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list