Bug 175821 - django 0.96 + MySQL needs mysql-python-1.2.1_p2 or newer
Bug#: 175821 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: seemant@gentoo.org Reported By: jcrml@mxm.eu
Component: Applications
URL: 
Summary: django 0.96 + MySQL needs mysql-python-1.2.1_p2 or newer
Keywords:  
Status Whiteboard: 
Opened: 2007-04-24 10:00 0000
Description:   Opened: 2007-04-24 10:00 0000
I have emerged django 0.96. The stable version (1.2.0) of mysql-python has been
installed.

But when I type the command :

python manage.py syncdb

there is an error :
Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/lib64/python2.4/site-packages/django/core/management.py", line
1672, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/usr/lib64/python2.4/site-packages/django/core/management.py", line
1571, in execute_from_command_line
    action_mapping[action](int(options.verbosity), options.interactive)
  File "/usr/lib64/python2.4/site-packages/django/core/management.py", line
486, in syncdb
    from django.db import connection, transaction, models, get_creation_module
  File "/usr/lib64/python2.4/site-packages/django/db/__init__.py", line 11, in
?
    backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE, {}, {}, [''])
  File "/usr/lib64/python2.4/site-packages/django/db/backends/mysql/base.py",
line 20, in ?
    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.0



Reproducible: Always

Steps to Reproduce:
1. Install django 0.96 on a Gentoo machine (stable)
2. Create a MySQL database.
3. Edit the settings.py configuration file
4. Launch the command : python manage.py syncdb

------- Comment #1 From Jean-Claude Repetto 2007-04-24 10:07:27 0000 -------
Created an attachment (id=117125) [details]
Proposed patch for the ebuild

------- Comment #2 From Seemant Kulleen (RETIRED) 2007-04-24 16:22:37 0000 -------
thanks J-C, fixed in portage.