Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175821 - django 0.96 + MySQL needs mysql-python-1.2.1_p2 or newer
Summary: django 0.96 + MySQL needs mysql-python-1.2.1_p2 or newer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 10:00 UTC by Jean-Claude Repetto
Modified: 2007-04-24 16:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch for the ebuild (django-0.96.ebuild.patch,403 bytes, patch)
2007-04-24 10:07 UTC, Jean-Claude Repetto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Repetto 2007-04-24 10:00:51 UTC
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 Jean-Claude Repetto 2007-04-24 10:07:27 UTC
Created attachment 117125 [details, diff]
Proposed patch for the ebuild
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2007-04-24 16:22:37 UTC
thanks J-C, fixed in portage.