Note that there are some explanatory texts on larger screens.

plurals
  1. PO"ImportError: No module named dummy" on fresh Django project
    text
    copied!<p>I've got the following installed through MacPorts on MacOS X 10.5.6:</p> <pre><code>py25-sqlite3 @2.5.4_0 (active) python25 @2.5.4_1+darwin_9+macosx (active) sqlite3 @3.6.12_0 (active) </code></pre> <p><code>python25</code> is correctly set as my system's default Python.</p> <p>I downloaded a fresh copy of Django 1.1 beta (I have the same problem with 1.0 and trunk, though) and installed it with "<code>sudo python setup.py install</code>".</p> <p>Things seem to load correctly through the interactive interpreter:</p> <pre><code>$ python Python 2.5.4 (r254:67916, Apr 10 2009, 16:02:52) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import django &gt;&gt;&gt; import sqlite3 &gt;&gt;&gt; ^D </code></pre> <p>But:</p> <pre><code>$ django-admin.py startproject foo $ cd foo/ $ python manage.py runserver Validating models... Unhandled exception in thread started by &lt;function inner_run at 0x6c1e70&gt; Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/commands/runserver.py", line 48, in inner_run self.validate(display_num_errors=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/base.py", line 246, in validate num_errors = get_validation_errors(s, app) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/validation.py", line 22, in get_validation_errors from django.db import models, connection File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/__init__.py", line 22, in &lt;module&gt; backend = __import__('%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) ImportError: No module named dummy.base </code></pre> <p>If I change <code>DATABASE_ENGINE</code> in <code>settings.py</code> to "<code>sqlite3</code>", I get the following, seemingly related problem:</p> <pre><code>$ python manage.py runserver Validating models... Unhandled exception in thread started by &lt;function inner_run at 0x6c1e70&gt; Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/commands/runserver.py", line 48, in inner_run self.validate(display_num_errors=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/base.py", line 246, in validate num_errors = get_validation_errors(s, app) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/validation.py", line 22, in get_validation_errors from django.db import models, connection File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/__init__.py", line 22, in &lt;module&gt; backend = __import__('%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) ImportError: No module named base ^C$ </code></pre> <p>I swear this all worked a few days ago and I don't recall changing anything related to Django or Python, installation-wise.</p> <p>My various Google adventures have turned up nothing useful. So... Any ideas?</p> <p>Edit: '<code>syncdb</code>' raises the same exceptions.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload