MySQL Forums
Forum List  »  Connector/Python

MySQLdb import problem on debian
Posted by: hawk gao
Date: October 30, 2008 12:01AM

I installed python-mysqldb by command "apt-get install python-mysqldb" on debian.
but, when i import MySQLdb under python2.4. the error message prompt that
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "MySQLdb/__init__.py", line 22, in ?
raise ImportError, "this is MySQLdb version %s, but _mysql is version %r" %\
ImportError: this is MySQLdb version (1, 2, 2, 'final', 0), but _mysql is version (1, 2, 1, 'final', 2)

how can i get the right version MySQLdb or _mysql.so?
Thanks in advance!

Hawk



Edited 1 time(s). Last edit at 10/30/2008 12:01AM by hawk gao.

Options: ReplyQuote


Subject
Written By
Posted
MySQLdb import problem on debian
October 30, 2008 12:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.