导入ImportError: No module named httplib2
时收到错误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
在文件夹from apiclient import discovery
google-api-python-client
也是如此
不确定我做错了什么
帮助表示赞赏!!
答案 0 :(得分:6)
httplib2不是由appengine运行时提供的python或核心第三部分库的一部分 - 请参阅https://developers.google.com/appengine/docs/python/tools/libraries27
您需要在项目中直接包含或链接httplib2代码,并将其与项目一起部署。