[Python-modules-team] Bug#662965: Python doesn't find the connector module -- missing symlinks?
David Paleino
dapal at debian.org
Wed Mar 7 19:13:51 UTC 2012
On Wed, 7 Mar 2012 19:23:00 +0100, Sandro Tosi wrote:
> the typical problem is a mysql.py in the same dir you are running the
> command (. is always inserted at the beginning of sys.path).
That's what I was referring to. A mysql.py or a mysql/__init__.py in ".".
> Else, can you import only 'mysql'? if yes, where it's pointing to?
>
> $ python -c 'import mysql as a ; print a.__file__'
> /usr/lib/pymodules/python2.7/mysql/__init__.pyc
$ python -c 'import mysql as a ; print a.__file__'
/usr/lib/python2.7/dist-packages/mysql/__init__.pyc
..and that file is from a package I just sponsored in NEW (which provides the
mysql.utilities module).
I guess we just found a bug with the coexistence of dh_python2 and pysupport
packages?
Thanks for your help,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120307/3351a780/attachment.pgp>
More information about the Python-modules-team
mailing list