#5531: ImportError: No module named mysql.base
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: nobody
Status: new | Component: Database wrapper
Version: SVN | Keywords: mysql
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
I got this error:
{{{
Traceback (most recent call last):
File "low_level_test1.cgi", line 84, in ?
from django.test.utils import setup_test_environment
File "./django/test/__init__.py", line 6, in ?
from django.test.testcases import TestCase
File "./django/test/testcases.py", line 6, in ?
from django.db import transaction
File "./django/db/__init__.py", line 23, in ?
backend = __import__('%s.base' % settings.DATABASE_ENGINE, {}, {},
[''])
ImportError: No module named mysql.base
}}}
But this is not the true error. The real problem is the version checking
routines here:
http://code.djangoproject.com/browser/django/trunk/django/db/backends/mysql/base.py#L13
Is raises a ImportError, too!
So i don't see message "MySQLdb-1.2.1p2 or newer is required; you have..."
i see the wrong error messages from above: "No module named mysql.base"
Solution: I think the Version Exception must be a different class and not
the generetic ImportError.
--
Ticket URL: <http://code.djangoproject.com/ticket/5531>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---