[Python-modules-team] Bug#662965: Bug#662965: Python doesn't find the connector module -- missing symlinks?

Sandro Tosi morph at debian.org
Wed Mar 7 17:03:17 UTC 2012


On Wed, Mar 7, 2012 at 17:29, David Paleino <dapal at debian.org> wrote:
> after installation of said package, python isn't able to find the module:
>
> $ python -c 'import mysql.connector'
> Traceback (most recent call last):
>  File "<string>", line 1, in <module>
> ImportError: No module named connector
> $

that's weird because it works on several of my machines and also in a
clean pbuilder chroot; have you tried reinstalling it? remove +
reinstall?

$ python -c 'import mysql.connector as a ; print a.__file__'
/usr/lib/pymodules/python2.7/mysql/connector/__init__.pyc
$ readlink -f /usr/lib/pymodules/python2.7/mysql/connector/__init__.py
/usr/share/pyshared/mysql/connector/__init__.py


> Checking "dpkg -L", it seems like the package is missing the symlinks
> under /usr/lib/python*/*/.

that's not the problem: python-support creates the symlinks tree at
install time (via trigger).

> Also, it would be nice if you could switch it to dh_python2 :)

No, that's not going to happen anytime soon.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi





More information about the Python-modules-team mailing list