There is a minor bug which I managed to fix: When
trying to build the API, I got the following error:
[localhost:~/Desktop/MySQL-python-0.9.2] gredner% python
<abbreviated>
gcc -L/sw/lib -bundle -bundle_loader /sw/bin/python
build/temp.darwin-5.5-PowerMacintosh-2.2/_mysql.o
-L/usr/local/lib/mysql -L/sw/lib -lmysqlclient_r -lz -o
build/lib.darwin-5.5-PowerMacintosh-2.2/_mysql.so
-flat_namespace
/usr/bin/ld: can't locate file for: -lmysqlclient_r
error: command 'gcc' failed with exit status 1
The problem was ameliorated by changing line 23 of
setup.py from:
mysqlclient = thread_safe_library and "mysqlclient_r"
or "mysqlclient"
to:
mysqlclient = thread_safe_library and "mysqlclient" or
"mysqlclient_r"
Hope this is helpful...
-Gabe Redner
GRedner@netscape.net
Logged In: YES
user_id=71372
Doh! You're supposed to set thread_safe_client to NO.
Since other people have been having this problem, and since
the MySQL 4.0 libraries seem to be thread-safe by default, I
will probably rework this for the next release.
Logged In: NO
Out of curiosity, should I set thread_safe_client to "NO"
and rebuild, or will I be ok?
-Gabe