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
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig