python/py-mysql

Suresh Pillai stochashtic at yahoo.ca
Thu Jan 31 06:32:08 PST 2008


I am running

Macports 1.6
OS X 10.5
xcode 3.0
xquartz 2.1.3

python24 installs fine but gives me bus errors for the simplest of things 
like printing a list.  Someone else mentioned this too back in Nov but I 
didnt see any responses to the thread.  Also py-mysql won't compile (log 
not show since python itself is unstable).

So I tried python25/py25-mysql and python25 won't even compile.

I am new to OSX and Macports, but if I can't get python working ...

Okay, so I thought I'd stick with the system python and downloaded the 
source for python-mysql from sourceforge.  I got errors installing that 
too, although the errors were related to the macports install of mysql5:

...
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.5-i386-2.5
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX 
-I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe 
-Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 
-I/opt/local/include/mysql5/mysql 
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 
-c _mysql.c -o build/temp.macosx-10.5-i386-2.5/_mysql.o
In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
                  from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in declaration 
specifiers
In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
                  from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in declaration 
specifiers
lipo: can't open input file: 
/var/folders/ZV/ZVl4o2PwHqaUrZYDYfN2CE+++TI/-Tmp-//ccXNdGDK.out (No such 
file or directory)
error: command 'gcc' failed with exit status 1


Anyone got py-mysql/mysql-python working using the base Apple python? 
Otherwise I am reverting to linux.

Thanks,
Suresh


More information about the macports-users mailing list