[Django]-Django and Google App Engine Helper not finding the ipaddr module

3👍

It happens also with app-engine-patch

The solution is to add $GOOGLE_APP_ENGINE/lib/ipaddr to your pythonpath, as you must have done with other dependencies like antlr3 or yaml.

7👍

http://code.google.com/p/ipaddr-py/
To install.

Information about issue:
http://code.google.com/p/google-app-engine-django/issues/detail?id=161#c3

From google:

> Hi, just apply this patch from: http://code.google.com/p/google-app-engine-
django/source/detail?r=102

-------

Log message

Adds new dependency, ipaddr, from SDK
Affected files     expand all   collapse all
    Modify  /trunk/appengine_django/__init__.py diff
...         
129 129             SDK_PATH,
130 130             os.path.join(SDK_PATH, 'lib', 'antlr3'),
131 131             os.path.join(SDK_PATH, 'lib', 'django'),
132 +           os.path.join(SDK_PATH, 'lib', 'ipaddr'),
132 133             os.path.join(SDK_PATH, 'lib', 'webob'),
133 134             os.path.join(SDK_PATH, 'lib', 'yaml', 'lib'),
134 135         ]

1👍

I had the same problem following the tutorial here:
http://code.google.com/appengine/articles/appengine_helper_for_django.html

I agree that you need to add ipaddr to your module path. I did this by creating a text file in my D:\Python26\Lib\site-packages directory called ipaddr.pth and it contains a single line:

D:\Program Files\Google\google_appengine\lib\ipaddr

Which is the path to that module.

Another thing to note is you don’t need to install Python for Windows as suggested, as it doesn’t automatically pick up the appengine SDK (or at least it didn’t seem to do so for me). Mind you, I have D:\Program Files\Google\google_appengine\ on my system PATH variable, but I’m not sure if that helps (this is so I can run the helper scripts in there from the cli).

Leave a comment