[Distutils] easy_install MySQL_python error

Christian Brodbeck christianmbrodbeck at gmail.com
Wed Jul 8 16:39:27 CEST 2009


Hi there,

I am trying to install MySQL_python, but I get the following error:  
"EnvironmentError: mysql_config not found" (complete terminal readout  
below). I am using python 2.5 and the latest version of os X on a  
macbook. I could not find anything in the mailinglist archive (using  
google's site: search - is there a better way to search it?) and  
easy_install page advises to write to this mailinglist if there are  
problems, so I was wondering if anyone could help.

Thanks,
Christian





Christian$ sudo easy_install-2.5 MySQL_python
Password:
Searching for MySQL-python
Reading http://pypi.python.org/simple/MySQL_python/
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3c1
Downloading http://osdn.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3c1.tar.gz
Processing MySQL-python-1.2.3c1.tar.gz
Running MySQL-python-1.2.3c1/setup.py -q bdist_egg --dist-dir /tmp/ 
easy_install-xtH6un/MySQL-python-1.2.3c1/egg-dist-tmp-8rW4eF
sh: mysql_config: command not found
Traceback (most recent call last):
   File "/opt/local/bin/easy_install-2.5", line 8, in <module>
     load_entry_point('setuptools==0.6c9', 'console_scripts',  
'easy_install-2.5')()
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 1671, in main

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 1659, in  
with_ei_usage

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 1675, in <lambda>

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/distutils/core.py", line 151, in setup
     dist.run_commands()
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/distutils/dist.py", line 986, in run_commands
     self.run_command(cmd)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/distutils/dist.py", line 1006, in run_command
     cmd_obj.run()
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 211, in run

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 446, in easy_install

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 476, in install_item

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 655, in install_eggs

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 930, in  
build_and_install

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/easy_install.py", line 919, in run_setup

   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/ 
sandbox.py", line 27, in run_setup
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/ 
sandbox.py", line 63, in run
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/ 
sandbox.py", line 29, in <lambda>
   File "setup.py", line 15, in <module>
     setup(name="pbrain",
   File "/tmp/easy_install-xtH6un/MySQL-python-1.2.3c1/ 
setup_posix.py", line 43, in get_config
   File "/tmp/easy_install-xtH6un/MySQL-python-1.2.3c1/ 
setup_posix.py", line 24, in mysql_config
EnvironmentError: mysql_config not found



More information about the Distutils-SIG mailing list