ImportError: no module named httplib2 App engine 1.8.0

I get an ImportError: No module named httplib2 when I import httplib2 . I have the latest version of the App Engine launcher (1.8.0.802), and I can see the lib folder with all the files in /GoogleappEngineLauncher.app/..../lib/httplib2/httplib2 Eclipse can find it and import it without problems, but when I run my application, I get an error message.

 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 

The same thing happens with do: from apiclient import discovery , which is located in the google-api-python-client folder

Not sure what I'm doing wrong

Help rate!

+4
source share
1 answer

httplib2 is not part of the partial python or core libraries provided by the appengine runtime - see https://developers.google.com/appengine/docs/python/tools/libraries27

You need to enable or link the httplib2 code directly in your project and deploy it to your project.

+6
source

Source: https://habr.com/ru/post/1485257/


All Articles