[Pythonmac-SIG] Problems with py2app for i386

Chris Van Bael chris.van.bael at gmail.com
Wed Nov 8 09:01:40 CET 2006


On 10/30/06, Bob Ippolito <bob at redivi.com> wrote:
> On 10/29/06, Chris Van Bael <chris.van.bael at gmail.com> wrote:
> > Hi,
> >
> > I'm building an application on a PPC Mini in Python with PyGame.
> > When I run "python setup.py py2app" I get a .app file made that runs
> > on my (and other) PPC Macs.  But it fails on Intel Macs.
> > I presume these last lines I get have something to do with it:
> > "
> > /usr/bin/strip: for architecture i386 object:
> > /Users/chrisvanbael/Childsplay/Sources/childsplay-0.84.1/dist/childsplay.app/Contents/MacOS/childsplay
> > malformed object (unknown flavor for flavor number 0 in LC_UNIXTHREAD
> > command 10 can't byte swap it)
> > /usr/bin/strip: for architecture i386 object:
> > /Users/chrisvanbael/Childsplay/Sources/childsplay-0.84.1/dist/childsplay.app/Contents/MacOS/python
> > malformed object (unknown flavor for flavor number 0 in LC_UNIXTHREAD
> > command 13 can't byte swap it)
> > stripping saved 11991384 bytes (12298552 / 24289936)
> > "
> >
> > Any ideas where my problem is; is it in my code or a problem of py2app
> > or the strip application?
> > Do I need to use the no-strip option or prefer-ppc for a universal binary?
>
> It looks like you probably didn't install py2app properly. Perform a
> full uninstallation and follow the installation instructions in the
> documentation.
>
> http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#installation
>

Hi all,

I uninstalled py2app as described on that webpage.
Went through my HD with Finder and Spotlight and removed everything
that mentioned py2app.

Reinstalled py2app via easy_install.

End result: same problem!

Also tried the --no-strip and --prefer-ppc options, but they didn't help.
Any ideas?


More information about the Pythonmac-SIG mailing list