[Pythonmac-SIG] Troubles with pygame and py2app
Pierre-Alain Dorange
pdorange at mac.com
Tue May 27 19:24:39 CEST 2008
I'm new with python/pygame, i found it very nice.
But i got a problem to create a bundle mac application
I try several options but each build fail with pygame/py2app, event
the alien sample setup.py...
It fail during graphing a pygame file, here's the last lines in the
console :
My config :
MacOS X 10.4.11 / imac intel
Python 2.5.2
pygame 1.8rc5 for python 2.5
pyobjc 1.4 for python 2.5
--------------------------------------------
Graphing /Volumes/Documents/PAD/Dev/PyGame/MicroWar/Source/dist/
MicroWar.app/Contents/Resources/Python/lib-dynload/numpy/random/
mtrand.so (ppc)
Graphing /Volumes/Documents/PAD/Dev/PyGame/MicroWar/Source/dist/
MicroWar.app/Contents/Resources/Python/lib-dynload/objc/_objc.so (ppc)
Graphing /Volumes/Documents/PAD/Dev/PyGame/MicroWar/Source/dist/
MicroWar.app/Contents/Resources/Python/lib-dynload/pygame/
_numericsndarray.so (ppc)
Traceback (most recent call last):
File "setup.py", line 26, in <module>
setup_requires=["py2app"],
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/py2app/build_app.py", line 389, in run
self._run()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/py2app/build_app.py", line 510, in _run
self.run_normal()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/py2app/build_app.py", line 570, 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/py2app/build_app.py", line 672, in
create_binaries
platfiles = mm.run()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachOStandalone.py", line
101, in run
mm.run_file(fn)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachOGraph.py", line 67, in
run_file
m = MachO(pathname)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachO.py", line 254, in __init__
self.load()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachO.py", line 287, in load
self.archs = self.load_fat(fat, fh)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachO.py", line 271, in load_fat
archs.append(MachOArch(self.filename, archHeader.offset,
endian="<"))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachO.py", line 59, in __init__
self.load(file(filename, "rb"))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/Py2App/macholib/MachO.py", line 92, in load
raise ValueError, "Unknown load command: %d" % (cmd_load.cmd,)
ValueError: Unknown load command: 27
-----------------------------------------------------------------
At the end, i got an application, but as it fail during building it's
incomplete. It only run on my computer.
Running on an other (without pygame installed) it fail at launch
(can't fin SDL)
PS : sorry for my poor english, i'm french
--
Pierre-Alain Dorange
Blog Citoyen de Cognac <http://cognac-citoyen.blogspot.com/>
Le Retour de l'Autruche <http://www.leretourdelautruche.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080527/cd1d7b09/attachment-0001.htm>
More information about the Pythonmac-SIG
mailing list