Django and Google App Engine Helper not finding the ipaddr module.
- by Phil
I'm trying to get Django running on GAE using this tutorial.
When I run python manage.py runserver I get the stacktrace below. I'm new to both django and python so I don't know what my next steps are (This is Ubuntu Jaunty btw). It seems django isn't finding the GAE module ipaddr which comes with SDK 1.3.1.
How do I get django to find this module?
/home/username/bin/google_appengine/google/appengine/api/datastore_file_stub.py:40: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
/home/username/bin/google_appengine/google/appengine/api/memcache/__init__.py:31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
Traceback (most recent call last):
File "manage.py", line 18, in <module>
InstallAppengineHelperForDjango()
File "/home/username/Development/GAE/myapp/appengine_django/__init__.py", line 543, in InstallAppengineHelperForDjango
InstallDjangoModuleReplacements()
File "/home/username/Development/GAE/myapp/appengine_django/__init__.py", line 260, in InstallDjangoModuleReplacements
import django.db
File "/home/username/Development/GAE/myapp/django/db/__init__.py", line 57, in <module>
'TIME_ZONE': settings.TIME_ZONE,
File "/home/username/Development/GAE/myapp/appengine_django/db/base.py", line 117, in __init__
self._setup_stubs()
File "/home/username/Development/GAE/myapp/appengine_django/db/base.py", line 128, in _setup_stubs
from google.appengine.tools import dev_appserver_main
File "/home/username/bin/google_appengine/google/appengine/tools/dev_appserver_main.py", line 82, in <module>
from google.appengine.tools import appcfg
File "/home/username/bin/google_appengine/google/appengine/tools/appcfg.py", line 53, in <module>
from google.appengine.api import dosinfo
File "/home/username/bin/google_appengine/google/appengine/api/dosinfo.py", line 25, in <module>
import ipaddr
ImportError: No module named ipaddr