On Wed, Mar 7, 2012 at 17:29, David Paleino <[email protected]> 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 _______________________________________________ Python-modules-team mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

