Using Httplib2 on Python Appengine

keith picture keith · Feb 20, 2011 · Viewed 8.8k times · Source

Why am I getting this error when running my application which is trying to OAuth with Foursquare?

import httplib2
ImportError: No module named httplib2

I have installed httplib2 by downloading it and $ python setup.py install on the command line as instructed here

Am I missing something? Thanks

Answer

Jason Hall picture Jason Hall · Feb 20, 2011

You will need to include the library in your project so that the App Engine runtime knows what you're importing.

From here:

You can include other pure Python libraries with your application by putting the code in your application directory. If you make a symbolic link to a module's directory in your application directory, appcfg.py will follow the link and include the module in your app.