Search code examples
pythongoogle-app-engineoauthfoursquarehttplib2

Using Httplib2 on Python Appengine


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


Solution

  • 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.