[DB-SIG] need to import twice ?!
M.-A. Lemburg
mal@lemburg.com
Tue, 10 Oct 2000 11:07:29 +0200
oto pumerantz wrote:
>
> i'm trying to use
> MySQLdb-0.2.2
>
> while in python interpreter,
> i need to write TWICE the command
> import MySQLdb
>
> in order for it to work, because on the first time it yields
> ImportError: No module named _mysql
>
> have you seen such an error before ?
Looks like you have not compiled the C extension (_mysql). The
DB module won't work without first compiling the extension or
installing a pre-compiled one (e.g. by installing a RPM).
> also, after the second time it sometimes (sounds suspicious already...) do not
> recognize the connect() function at all !
>
> i don't even know what query should i feed into google...:-(
> what's wrong with my installation?
>
> Thanx, Oto.
> --------------------------------!
> ___________________________________________________________________________
> Visit http://www.visto.com/info, your free web-based communications center.
> Visto.com. Life on the Dot.
>
> _______________________________________________
> DB-SIG maillist - DB-SIG@python.org
> http://www.python.org/mailman/listinfo/db-sig
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/