MySQL-Python on OS X

C

Craig Amundsen

Hi -

I'm trying to build the MySQL-Python module v0.9.2 on OS-X 10.2 for
the latest MySQL from Fink. I have also installed the fink version of
Python (2.2.2).

I have made all the recommended changes to setup.py that I have been
able to find.

I have changed thread_safe_library from YES to NO

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

and in the darwin section I have changed
include_dirs.append('/sw/include')
library_dirs.append('/sw/lib')
to
include_dirs.append('/sw/include/mysql')
library_dirs.append('/sw/lib/mysql')

when I run
/sw/bin/python setup.py build
I get 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'

It looks like p is supposed to be a string containing a path, but
instead is an int. I have not seen this error mentioned anywhere in my
searches. Does anyone have any hints on how I can get this module to
build?

TIA,
- Craig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,113
Messages
2,570,688
Members
47,269
Latest member
VitoYwo03

Latest Threads

Top