Hello all,
  I'm new to Django and somewhat Python (a PHP refugee).  I have been 
learning Python 3.0 so decided to give 1.5 a run.  I tried to run the 
command below and mysqldb is missing.  I noticed on 
http://mysql-python.blogspot.com/ that mysqldb won't be ready for 3.0 until 
the 1.3 release.  So I guess the question is if there's any kind of 
workaround at the moment? 

Thanks,
  CJ

~/www$ python3 manage.py syncdb
Traceback (most recent call last):
  File 
"/usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py", 
line 14, in <module>
    import MySQLdb as Database
ImportError: No module named MySQLdb

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", 
line 451, in execute_from_command_line
    utility.execute()
  File 
"/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", 
line 390, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", 
line 270, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File 
"/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", 
line 76, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/local/lib/python3.2/dist-packages/django/utils/importlib.py", 
line 35, in import_module
    __import__(name)
  File 
"/usr/local/lib/python3.2/dist-packages/django/core/management/commands/syncdb.py",
 
line 8, in <module>
    from django.core.management.sql import custom_sql_for_model, 
emit_post_sync_signal
  File 
"/usr/local/lib/python3.2/dist-packages/django/core/management/sql.py", 
line 9, in <module>
    from django.db import models
  File "/usr/local/lib/python3.2/dist-packages/django/db/__init__.py", line 
40, in <module>
    backend = load_backend(connection.settings_dict['ENGINE'])
  File "/usr/local/lib/python3.2/dist-packages/django/db/__init__.py", line 
34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/usr/local/lib/python3.2/dist-packages/django/db/utils.py", line 
85, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/usr/local/lib/python3.2/dist-packages/django/db/utils.py", line 
26, in load_backend
    return import_module('.base', backend_name)
  File "/usr/local/lib/python3.2/dist-packages/django/utils/importlib.py", 
line 35, in import_module
    __import__(name)
  File 
"/usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py", 
line 17, in <module>
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: 
No module named MySQLdb

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TAWAb2UBHzsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to