mysql/pkg_resources problem

128 views
Skip to first unread message

Greg Donald

unread,
Aug 16, 2007, 2:17:38 PM8/16/07
to django...@googlegroups.com
I have a new Django setup I'm trying to finish up the install for.
I'm getting this error:

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/

Greg Donald

unread,
Aug 16, 2007, 3:29:48 PM8/16/07
to django...@googlegroups.com
On 8/16/07, Greg Donald <gdo...@gmail.com> wrote:
> I have a new Django setup I'm trying to finish up the install for.
> I'm getting this error:
>
> Error loading MySQLdb module: No module named pkg_resources

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

Reply all
Reply to author
Forward
0 new messages