[DB-SIG] need to import twice ?!
Tue, 10 Oct 2000 11:07:29 +0200
oto pumerantz wrote:
> i'm trying to use
> 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
Python Pages: http://www.lemburg.com/python/