Bug 243877 - mysql-python complains about wrong _mysql.so version whereas the version is the same
mysql-python complains about wrong _mysql.so version whereas the version is t...
Status: CLOSED ERRATA
Product: Red Hat Web Application Stack
Classification: Retired
Component: mysql-python (Show other bugs)
v2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Lane
Greg Nichols
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-12 10:50 EDT by Martin Vecera
Modified: 2013-07-02 23:13 EDT (History)
2 users (show)

See Also:
Fixed In Version: 1.2.2-2.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-26 23:54:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Martin Vecera 2007-06-12 10:50:59 EDT
Description of problem:


Version-Release number of selected component (if applicable):
http://intranet.corp.redhat.com/ic/intranet/RHTSMainPage.html

How reproducible:
100%

Steps to Reproduce:
1. python /usr/lib64/python2.4/site-packages/MySQLdb/__init__.py

  
Actual results:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/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,2,'final',0)"


Expected results:
No errors, because the version is the same.

Additional info:
I found this bug when trying to do Python-MySQL connection tests. It appears
immediately when you try to import MySQLdb package.
Comment 1 Tom Lane 2007-06-12 15:39:45 EDT
Doh, silly quoting problem.  Try 1.2.2-2
Comment 2 Fedora Update System 2007-06-13 17:01:55 EDT
MySQL-python-1.2.2-2.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
Comment 3 Fedora Update System 2007-06-26 23:54:36 EDT
MySQL-python-1.2.2-2.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 4 Julian Yap 2007-06-30 23:24:20 EDT
I expect this to break a lot of applications which do MySQL-python version
checking.  Django is broken because of this change.

On my Fedora 7 system.

$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb as Database
>>> version = Database.version_info
>>> print version
(1,2,2,'final',0)
>>> if (version < (1,2,1) or (version[:3] == (1, 2, 1) and
...         (len(version) < 5 or version[3] != 'final' or version[4] < 2))):
...     raise ImportError, "MySQLdb-1.2.1p2 or newer is required; you have %s" %
Database.__version__
...
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

Note You need to log in before you can comment on or make changes to this bug.