Error loading MySQLdb module: No module named pkg_resources
I can load pkg_resources on the command line with no problems.
> ipython
In [1]: import sys
In [2]: sys.path
Out[2]:
['',
'/usr/local/bin',
'/usr/local/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg',
'/usr/local/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg',
'/usr/local/lib/python2.5/site-packages/simplejson-1.7.1-py2.5-linux-i686.egg',
'/usr/local/lib/python2.5/site-packages/boto-0.9b-py2.5.egg',
'/usr/local/lib/python25.zip',
'/usr/local/lib/python2.5',
'/usr/local/lib/python2.5/plat-linux2',
'/usr/local/lib/python2.5/lib-tk',
'/usr/local/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/local/lib/python2.5/site-packages/PIL',
'/usr/local/lib/python2.5/site-packages/IPython/Extensions',
'/root/.ipython']
Seem like the paths are sufficient.
I'm using Django -r 5833 from svn if that helps any.
I've tried rebuilding and install MySQL_python a couple times. I've
rebuilt Python 2.5 from source a couple times. Any idea what else I
might try?
Thanks,
--
Greg Donald
http://destiney.com/
I figured it out. I built my MySQL from source but forgot to add an
entry into my /etc/ld.so.conf.
# cat /etc/ld.so.conf
/usr/local/lib
/usr/local/mysql/lib/mysql