Issue #161 resolved

mysql-python not installing properly

apreche
created an issue

Using distribute 0.6.12 on Ubuntu 10.4 I tried to do the following.

easy_install mysql-python

It successfully installs version 1.2.3c1

However, when I try to actually import _mysql I get this error.

ImportError: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory

On Ubuntu 10.4 libmysqlclient15 is a virtual package and libmysqlclient16 is what is actually installed. The 15 file does not exist on the system.

However, if I go and download MySQL-python-1.2.3c1.tar.gz directly from sourceforge, and then do python setup.py install by hand, it links to the correct library version, and works properly.

Because I can install the library just fine on its own, logically it must be a bug in distribute such that it is installing mysql-python improperly.

Also of note, I'm doing all this with virtualenv with --no-site-packages. If I weren't, I would just do aptitude install python-mysqldb, which also works.

Comments (2)

  1. Jason R. Coombs

    It's possible a binary build of mysql, built against a specific version of mysql, was placed somewhere in the download links, and so you received that version instead. Glad it's working for you now.

  2. Log in to comment