[Pythonmac-SIG] MySQL-python

Brian Lenihan brian_l at mac.com
Tue Sep 23 21:12:04 EDT 2003


On Sep 23, 2003, at 4:16 PM, Craig Amundsen wrote:

> Hi -
>
> I'm trying to build the MySQL-python module (v0.9.2) using the fink 
> version of python (2.2.2) on a G4 iMac running 10.2.6 (and 10.2.8 for 
> that matter) and I'm getting this error:
>
> line 1033, in gen_lib_options
>   File "/sw/lib/python2.2/posixpath.py", line 65, in split
>     i = p.rfind('/') + 1
> AttributeError: 'int' object has no attribute 'rfind'

I dug up your post to C.L.P. in which you said:

> I have changed
> mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient"
> to
> mysqlclient = thread_safe_library and "mysqlclient"

change it back.  thread_safe_library is either 0 or 1 depending on 
whether it was set to YES or NO higher up in setup.py.  You set it to 
NO, so you get:

 >>> 0 and "mysqlclient"
0

instead of:

 >>> 0 and "mysqlclient_r" or "mysqlclient"
'mysqlclient'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 984 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030923/944b28a0/attachment.bin


More information about the Pythonmac-SIG mailing list