[Pythonmac-SIG] Error installing mysql-python 1.2.2 on mac os x 10.4.9
Alessandro Censoni
alessandro_censoni at hotmail.it
Tue Oct 30 16:40:15 CET 2007
Hi all,
I trie to install mysql-python 1.2.2 but I have a lot of errors. I have install MySQL 5.0.45 and python 2.5.1. I use Mac OS X 10.4.9 and when I trie to build mysqldb i have the following and famous error:
>sh: line 1: mysql_config: command not found
>Traceback (most recent call last):
>File "setup.py", line 16, in <module>
>metadata, options = get_config()
>File "/Users/alessandrocensoni/Desktop/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config
>libs = mysql_config("libs_r")
>File "/Users/alessandrocensoni/Desktop/MySQL-python-1.2.2/setup_posix.py", >line 24, in mysql_config
>raise EnvironmentError, "%s not found" % mysql_config.path
>EnvironmentError: mysql_config not found
I trie to install the mysqldb but I have however errors.
I don't know where I have to do the change suggested in various sites and posts relative to:
return popen(“mysql_config --%s” % what) (1)
to
return popen(“/usr/local/mysql/bin/mysql_config --%s” % what) (2)
In the python.py of the mysql-python-1.2.2 there isn't a line like (1). While, in the file site.cfg I don't know what I have to change like someone suggest to eliminate the problem of the installation.
I also trie to install mysql-python-1.2.1_p2 and edit the setup.py by changing the line how suggest previously but I have the following error:
>File "setup.py", line 26
> f = popen(“/usr/local/mysql/bin/mysql_config --%s” % what)
> ^
>SyntaxError: invalid syntax
Can someone help me please?
Thanks a lot
Alex
_________________________________________________________________
Scarica GRATIS 30 emoticon per Messenger!
http://www.emoticons-livemessenger.com/pages/msnit/index.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20071030/eadc3052/attachment.htm
More information about the Pythonmac-SIG
mailing list