py2app woes
I've been trying to get py2app up and running so I can package a game I made with pygame recently. However, I've been having a lot of trouble with it. I tried installing version 0.4.2 from here (that's the latest version, right?), and upon running "python setup.py install", it spits out this error:
So then, I tried using py2app 0.3.6 (from http://pypi.python.org/pypi/py2app/), and while it was able to install successfully, I tried running it with a setup.py script, and it failed with this error:
I'm not sure if py2app is outdated, not maintained, or if I'm messing up somewhere. If others have gotten py2app to work (especially with pygame apps), how should I go about this? Or are there other ways of packaging a Python game?
EDIT: Oh, and I should also note that the "installer" that the py2app site mentions doesn't exist apparently, so I've been building it from the source each time.
EDIT 2: I guess I should also mention that I'm running Python 2.5 on OS X 10.5.5 with pygame 1.8.1 installed.
Code:
Searching for modulegraph>=0.7.2dev
Reading http://pypi.python.org/simple/modulegraph/
Reading http://undefined.org/python/#modulegraph
No local packages or download links found for modulegraph>=0.7.2dev
error: Could not find suitable distribution for Requirement.parse('modulegraph>=0.7.2dev')So then, I tried using py2app 0.3.6 (from http://pypi.python.org/pypi/py2app/), and while it was able to install successfully, I tried running it with a setup.py script, and it failed with this error:
Code:
<snip>
File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 178, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 27I'm not sure if py2app is outdated, not maintained, or if I'm messing up somewhere. If others have gotten py2app to work (especially with pygame apps), how should I go about this? Or are there other ways of packaging a Python game?
EDIT: Oh, and I should also note that the "installer" that the py2app site mentions doesn't exist apparently, so I've been building it from the source each time.
EDIT 2: I guess I should also mention that I'm running Python 2.5 on OS X 10.5.5 with pygame 1.8.1 installed.
Since when was "Fred" a placeholder variable?
Get easy_install and type "sudo easy_install -U py2app" into Terminal.
PyGame has its own py2app issues, though. You'll need to find a tutorial for it, or use the setup.py generator in py2app.
PyGame has its own py2app issues, though. You'll need to find a tutorial for it, or use the setup.py generator in py2app.
My web site - Games, music, Python stuff
Thanks for the link -- that made my life much easier.
As for the pygame issues, I looked into it more, and apparently I needed an updated version of macholib ("macholib==dev") and pygame itself (the latest unstable release fixes the issue apparently).
Again, thanks for the help.
As for the pygame issues, I looked into it more, and apparently I needed an updated version of macholib ("macholib==dev") and pygame itself (the latest unstable release fixes the issue apparently).
Again, thanks for the help.
Since when was "Fred" a placeholder variable?
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| py2app usage, and windows equivalent? | purplemaji | 1 | 2,499 |
Oct 24, 2006 02:00 AM Last Post: aarku |
|

