Opened 9 years ago

Closed 9 years ago

#4859 closed (duplicate)

ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

Reported by: pat.j.anderson@… Owned by: Jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I'm using Fedora 7 with python2.5 and I track django-trunk regularly. I think this is a bug.

Below is my traceback:

Traceback (most recent call last):

File "", line 11, in <module>


File "/usr/lib/python2.5/site-packages/django/core/", line 1775, in execute_manager

execute_from_command_line(action_mapping, argv)

File "/usr/lib/python2.5/site-packages/django/core/", line 1662, in execute_from_command_line


File "/usr/lib/python2.5/site-packages/django/core/", line 1220, in validate

num_errors = get_validation_errors(outfile)

File "/usr/lib/python2.5/site-packages/django/core/", line 1014, in get_validation_errors

from django.db import models, connection

File "/usr/lib/python2.5/site-packages/django/db/", line 11, in <module>

backend = import('django.db.backends.%s.base' % settings.DATABASE_ENGINE, {}, {}, [])

File "/usr/lib/python2.5/site-packages/django/db/backends/mysql/", line 20, in <module>

raise ImportError, "MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.version

ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.2

Change History (5)

comment:1 Changed 9 years ago by Simon G. <dev@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

Not a bug - unfortunately there are some fairly problematic bugs in MySQLdb less than 1.2.2p2 and Django needs the ..p2 version. You need to upgrade MySQLdb or change your database setting to mysql_old. There's more info here

comment:2 Changed 9 years ago by…

See: #4743

comment:3 Changed 9 years ago by Brian Rosner <brosner@…>

Wait, is it just me or is 1.2.2 a newer version than 1.2.1p2? The documentation says 1.2.1p2 or newer. It appears the submitter has 1.2.2. Just a quick thing I noticed.

comment:4 Changed 9 years ago by Simon G. <dev@…>

Resolution: invalid
Status: closedreopened
Triage Stage: UnreviewedAccepted

Oh... oops. My bad! I misread that as 1.2.2p2 instead of 1.2.1p2

comment:5 Changed 9 years ago by Brian Rosner <brosner@…>

Resolution: duplicate
Status: reopenedclosed

While my observation may be correct, I should have looked at #4743. Marked as duplicate since submitter mentioned Fedora.

Note: See TracTickets for help on using tickets.
Back to Top