[Pythonmac-SIG] py2app problems
thor
thorthor at altern.org
Mon Oct 30 13:29:43 CET 2006
Hi list
I'm trying to build an app with py2app. The project is using pygame and
pyOpenGL and all that is imported in the main file.
I'm on PowerBook, OS X 10.4.6
I try to build the setupfile with py2applet as recommended but I get
this:
thm21-mac-pb:~/Desktop/opengl thm21$ py2applet --make-setup myApp.py
Traceback (most recent call last):
File "/usr/local/bin/py2applet", line 2, in ?
from py2app.scripts.script_py2applet import main
ImportError: No module named scripts.script_py2applet
thm21-mac-pb:~/Desktop/opengl thm21$
Ok. so I copy a py2app setup file from the pygame example folder of
py2app and make this:
from setuptools import setup
setup(
app=["myApp.py"],
setup_requires=["py2app"],
)
Run this in the command line: python setup.py py2app
But after a while I get the following message:
(myApp.app is now 8.6 MB)
stripping SDL
stripping SDL_mixer
stripping _File.so
stripping zlib.so
/usr/bin/strip: for architecture i386 object: /Users/thm21/Desktop/
opengl/dist/myApp.app/Contents/MacOS/stripped malformed object
(unknown flavor for flavor number 0 in LC_UNIXTHREAD command 10 can't
byte swap it)
stripping saved 4548552 bytes (7711040 / 12259592)
thm21-mac-pb:~/Desktop/opengl thm21$
Could someone tell me how to proceed?
Thanks
thor
More information about the Pythonmac-SIG
mailing list