[Pythonmac-SIG] Installing Python 2.6.4 alongside stock python 2.6.1 on SnowLeopard

Erik van Blokland erik at letterror.com
Mon Dec 7 10:54:59 CET 2009


Hi,

sorry to bother, but I've run into a spot of trouble in an area I'm not familiar with.
(Ronald, this is a follow up of the post I sent yesterday, I'm sorry for the moving target. I'm stuck.)

I installed python 2.6.4 on Snow Leopard 10.6.2. I used the prepackaged .dmg installer from python.org.

The new 2.6.4:
[eBook:pyobjc/trunk/launch] erik% python
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) 

The stock python 2.6.1 is also still there:
[eBook:pyobjc/trunk/launch] erik% /usr/bin/python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 

With casual testing the new 2.6.4 seems to work well. But when installing other libraries I get very peculiar crashes. Installing Twisted and Pyobjc (both from source, not easy_install)  end in a similar way with lipo complaining and references to a 10.4 sdk: /Developer/SDKs/MacOSX10.4u.sdk.
The /Developer/SDKs dir contains a 10.6 sdk. But I am not familiar with what happens or should happen in this place.
I posted a question about this on the twistd list earlier, but now I see the same thing happen with trying to install pyobjc, I suspect something in my installation has gone wrong. My next step seems to be to reinstall Snow Leopard. Any pointers are welcome. 

Could it be related to 32 / 64 bit issues?

Regards, Erik

Tail of the pyobjc install log:

building 'launch._launch' extension
gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c Modules/_launch.c -o build/temp.macosx-10.3-fat-2.6/Modules/_launch.o
In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
                 from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
                 from Modules/_launch.c:1:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
                 from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
                 from Modules/_launch.c:1:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//ccNyhKCK.out
error: command 'gcc-4.0' failed with exit status 1
[eBook:pyobjc/trunk/launch] erik% 



More information about the Pythonmac-SIG mailing list