Gossamer Forum
Home : General : Internet Technologies :

Error installing mysql-python 1.2.2 on mac os x 10.4.9

Quote Reply
Error installing mysql-python 1.2.2 on mac os x 10.4.9
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 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 in a post in this site relative to:

return popen(“mysql_config --%s” % what)
to
return popen(“/usr/local/mysql/bin/mysql_config --%s” % what)


In the site.cfg I don't know what I have to change. I also trie to edit the setup.py of mysqlpython-1.2.1_p2 with the previous line 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 somebody help me?

Thanks a lot
Alex
Quote Reply
Re: [AlexC82] Error installing mysql-python 1.2.2 on mac os x 10.4.9 In reply to
Hi,

Is this actually related to MySQLMan? I would think you'd be better posting this in the "Internet Technologies" forum =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error installing mysql-python 1.2.2 on mac os x 10.4.9 In reply to
Smile I think that I commit an error...Smile I will do like you say!!!

Thanks