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