[Pythonmac-SIG] py2app error with /usr/bin/strip

altern altern2 at gmail.com
Mon Feb 5 22:04:48 CET 2007


Ronald Oussoren wrote:
> On 5 Feb, 2007, at 18:30, Chris Van Bael wrote:
> 
>> Hi,
>>
>> I'm getting essentially the same error for some time now.
>> Could anybody please explain what is going wrong here exactly, because
>> me and some other people are having the same error and re-installing
>> py2app doesn't fix the problem.
>>
>> See:
>> http://mail.python.org/pipermail/pythonmac-sig/2007-January/ 
>> 018645.html
>> http://mail.python.org/pipermail/pythonmac-sig/2006-October/ 
>> 018390.html
>> http://mail.python.org/pipermail/pythonmac-sig/2006-October/ 
>> 018391.html
>>
>> It would be a shame that I cannot provide a universal OS X version of
>> our program because of this problem..
> 
> Could you please try to provide an example that demonstrates te  
> problem? Without such an example there's little chance that I'll look  
> into this unless I happen to run into this problem myself.

in my computer something as simple as just

while 1: print 'looping'

causes the error when trying to create an app. I also tried with some 
other basic scripts with same results

enrike


> Ronald
> 
>> Chris
>>
>> On 2/5/07, Bob Ippolito <bob at redivi.com> wrote:
>>> When you see an error like that, it means there's a bug in macholib
>>> that caused it to produce a bogus file. Turning strip off doesn't
>>> really fix anything...
>>>
>>> -bob
>>>
>>> On 2/5/07, altern <altern2 at gmail.com> wrote:
>>>> hi again
>>>>
>>>> I solved the problem by doing
>>>> $ python setup.py py2app --no-strip
>>>>
>>>> I read this about strip
>>>> --strip (-S)            strip debug and local symbols from output  
>>>> (on by
>>>>                          default, for compatibility)
>>>>
>>>> could anyone explain a bit more about what this is? or maybe  
>>>> point to
>>>> somewhere i can read about it. I am interested because last time  
>>>> i used
>>>> this machine i did not need to use this (only use it every now  
>>>> and then
>>>> for testing on OSX), so I am trying to find out what is the  
>>>> difference
>>>> from last time.
>>>>
>>>> thanks
>>>>
>>>> enrike
>>>>
>>>>
>>>> altern wrote:
>>>>> Hi
>>>>>
>>>>> I am getting this error when trying to use py2app.
>>>>>
>>>>> $ py2applet --make-setup glut_opengl.py
>>>>> $ python setup.py py2app
>>>>> ...
>>>>> ...
>>>>> stripping bz2.so
>>>>> stripping zlib.so
>>>>> stripping _codecs_tw.so
>>>>> stripping umath.so
>>>>> stripping binascii.so
>>>>> /usr/bin/strip: for architecture i386 object:
>>>>> /Users/xxx/ixi/python/dist/glut_opengl.app/Contents/MacOS/python
>>>>> malformed object (unknown flavor for flavor number 0 in  
>>>>> LC_UNIXTHREAD
>>>>> command 13 can't byte swap it)
>>>>> /usr/bin/strip: for architecture i386 object:
>>>>> /Users/xxx/ixi/python/dist/glut_opengl.app/Contents/MacOS/ 
>>>>> glut_opengl
>>>>> malformed object (unknown flavor for flavor number 0 in  
>>>>> LC_UNIXTHREAD
>>>>> command 10 can't byte swap it)
>>>>> stripping saved 8991796 bytes (7898608 / 16890404)
>>>>>
>>>>>
>>>>> I also tried with
>>>>> $ python setup.py py2app --prefer-ppc
>>>>> but i got the same error. Because of the '/usr/bin/strip: for
>>>>> architecture i386 object' I thought it might be a problem with my
>>>>> processor, note that I am working on an old G3 ppc ibook, I am  
>>>>> running
>>>>> OS 10.4.8 and python 2.4.4, Py2app version is 0.3.5 .
>>>>>
>>>>> Later I tried with another script, one that does not use  
>>>>> pyOpengl, same
>>>>> error again.
>>>>>
>>>>> thanks
>>>>>
>>>>> enrike
>>>>>
>>>> _______________________________________________
>>>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>>>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>>>>
>>> _______________________________________________
>>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>>>
>> _______________________________________________
>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
> 
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> 



More information about the Pythonmac-SIG mailing list