I'm pretty new to python development on the Mac. I'm not sure that if this is the appropriate place to place this question, but I'm having problems getting the MySQL-python v1.2.0 working on my mac. When I try and set it up, as per the instructions I get the following errors:

jasonvance$ python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/sw/include/mysql -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c _mysql.c -o build/temp.darwin-7.8.0-Power_Macintosh-2.3/_mysql.o -I/sw/include/mysql -O3 -fomit-frame-pointer
In file included from _mysql.c:31:
pymemcompat.h:10:20: Python.h: No such file or directory
_mysql.c:40:26: structmember.h: No such file or directory
_mysql.c:59: error: parse error before '*' token
_mysql.c:59: warning: type defaults to `int' in declaration of `_mysql_MySQLError'
_mysql.c:59: warning: data definition has no type or storage class
_mysql.c:60: error: parse error before '*' token
_mysql.c:60: warning: type defaults to `int' in declaration of `_mysql_Warning'
_mysql.c:60: warning: data definition has no type or storage class
_mysql.c:61: error: parse error before '*' token
_mysql.c:61: warning: type defaults to `int' in declaration of `_mysql_Error'
_mysql.c:61: warning: data definition has no type or storage class
_mysql.c:62: error: parse error before '*' token
_mysql.c:62: warning: type defaults to `int' in declaration of `_mysql_DatabaseError'
_mysql.c:62: warning: data definition has no type or storage class
_mysql.c:63: error: parse error before '*' token

*** Shortened for Brevity ****

_mysql.c:2685: warning: implicit declaration of function `PyImport_ImportModule'
_mysql.c:2722: warning: assignment makes pointer from integer without a cast
_mysql.c:2726: warning: implicit declaration of function `PyErr_Occurred'
_mysql.c:2727: error: `PyExc_ImportError' undeclared (first use in this function)
_mysql.c:2729: warning: `return' with no value, in function returning non-void
_mysql.c: At top level:
_mysql.c:1882: warning: `_mysql_ConnectionObject_dealloc' defined but not used
_mysql.c:1957: warning: `_mysql_ResultObject_dealloc' defined but not used
_mysql.c:2334: warning: `_mysql_ConnectionObject_setattr' defined but not used
_mysql.c:2359: warning: `_mysql_ResultObject_setattr' defined but not used
error: command 'gcc' failed with exit status 1

Since I'm pretty new to python and I'm not a C programmer, I was thinking that I'm missing some sort of header files either with Python or with MySQL

Thanks,

Jason Vance

Jason S. Vance
Blue Boutique Online, Llc
1715 W. Wendover Blvd.
West Wendover, NV 89883

775-664-2771
801-381-4673 - Cell
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to