开发者

cannot import ipaddr in app engine server

In the dev_appserver we can import ipaddr successfully, while when I deploy the codes to app engine server side ,it tells that

No module named ipaddr
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 700,  in __call__
    handler.get(*groups)
  File "/base/data/home/apps/app-id/1.2345678/info.py", line 80, in get_ipinfo
    import ipaddr
ImportError: No module named ipaddr

But how to import the ipaddr module ipaddr at server side (path in dev_appserver is 开发者_JS百科/lib/ipaddr/ippaddr/*)?

Thanks!


If you're trying to use http://code.google.com/p/ipaddr-py/ , then you have to include it (ipaddr.py) as part of your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜