I removed all traces of 1.2.2 (including _mysql.so)
Then installed MySQLdb afresh.
But still getting the same error.
Please help me.
Tell me what further further info is required for you to pinpoint the problem.

Thanks,
Vineet


________________________________
From: Andy Dustman <a...@dustman.net>
To: Vineet Deodhar <d_vin...@yahoo.com>
Sent: Monday, 24 October 2011, 22:01
Subject: Re: MySQLdb in Ubuntu


You need to remove all traces of 1.2.2 including _mysql.so
Andy,

Thanks for your reply.
I uninstalled MySQLdb from 'Ubuntu Software Centre' & reinstalled.
I also downloaded MySQLdb 1.2.2 (instead of 1.2.3).
But no success.
Seems that it is a version mismatch.
It says 

"ImportError: this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is 
version (1, 2, 2, 'final', 0)"

Can you pl. help me?

Regards,

Vineet


________________________________
From: Andy Dustman <a...@dustman.net>
To: Vineet Deodhar <d_vin...@yahoo.com>
Sent: Sunday, 23 October 2011, 21:45
Subject: Re: MySQLdb in Ubuntu


Sounds like you have multiple versions installed. Why not just use the ubuntu 
package (python-mysqldb)?
On Oct 23, 2011 10:50 AM, "Vineet Deodhar" <d_vin...@yahoo.com> wrote:

Hello Andy !
>I am trying to setup python+MySQL the environment in Ubuntu (making a shift 
>from MS-Windows).
>It has, of course, Python 2.6.
>I did setup MySQL 5512 and MySQLdb from 'Ubuntu Software Centre'.
>>> import dabo
>>> import MySQLdb
>works OK.  No error.
>
>
>
>But while establishing a connection, is says that there is a mismatch in 
>versions of MySQLdb & _mysql.
>
>
>ImportError: this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is 
>version (1, 2, 2, 'final', 0)
>
>Can you please help me solve this?
>
>
>Complete traceback ---->
>
>
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "dabovmd/hotel.py", line 4, in <module>
>    empconn = dabo.db.dConnection(empci)
>  File "dabo/db/dConnection.py", line 32, in __init__
>    self._connection = self._openConnection(**kwargs)
>  File "dabo/db/dConnection.py", line 80, in _openConnection
>    return self._connectInfo.getConnection(forceCreate=self._forceCreate, 
>**kwargs)
>  File "dabo/db/dConnectInfo.py", line 105, in getConnection
>    return self._backendObject.getConnection(self, **kwargs)
>  File "dabo/db/dbMySQL.py", line 25, in getConnection
>    import MySQLdb as dbapi
>  File "/media/pyth/python26/Lib/site-packages/MySQLdb/__init__.py", line 23, 
>in <module>
>    (version_info, _mysql.version_info))
>ImportError: this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is 
>version (1, 2, 2, 'final', 0)
>
>
>Thanks in advance,
>
>
>Vineet Deodhar

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/1319558711.31505.yahoomail...@web160512.mail.bf1.yahoo.com

Reply via email to