【发布时间】:2013-06-09 06:24:53
【问题描述】:
我在导入 httplib2 时收到错误 ImportError: No module named httplib2。我有最新版本的 App Engine 启动器 (1.8.0.802),我可以看到包含 /GoogleappEngineLauncher.app/..../lib/httplib2/httplib2 下所有文件的 lib 文件夹
Eclipse 能够找到它并毫无问题地导入它,但是当我运行我的应用程序时出现错误。
ERROR 2013-06-09 06:15:28,554 wsgi.py:219]
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 196, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 255, in _LoadHandler
handler = __import__(path[0])
File "/Users/user1791567/Documents/git/workspace/MyApp/test.py", line 7, in <module>
import httplib2
ImportError: No module named httplib2
do: from apiclient import discovery 在文件夹 google-api-python-client 中也会发生同样的情况
不知道我做错了什么
感谢您的帮助!
【问题讨论】:
标签: google-app-engine python-2.7 httplib2