Skip to content Skip to sidebar Skip to footer

Google-app-engine : Importerror Httplib2 In Google Api Python Client Hello World

I just downloaded the Google App Engine SDK for python (google_appengine_1.6.5.zip) and i try to launch an example from google-api-python-client (appengine) : $ tree . |-- app.yaml

Solution 1:

here is a solution.

  • make a temporary directory somewhere out of the source tree.
  • cd to the directory and unzip /usr/lib/python2.5/site-packages/python_gflags-2.0-py2.5.egg
  • copy *.py to the source directory.

Solution 2:

Most third party libraries need to be included as part of your project. The easiest way to do this (Adapted from the App Engine documentation) is:

In your project directory (the one with app.yaml):

$ mkdir lib$ pip install -t lib/ httplib2

Then create a new file named appengine_config.py in the same directory:

# appengine_config.py
vendor.add('lib')

If you have multiple third party dependencies, but their names in a requirements.txt and then use

pip install -t lib/ -r requirements.txt

Post a Comment for "Google-app-engine : Importerror Httplib2 In Google Api Python Client Hello World"