Using Httplib2 on Python Appengine

590 views
Skip to first unread message

keith via StackOverflow

unread,
Sep 7, 2013, 6:45:39 PM9/7/13
to google-appengin...@googlegroups.com

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



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/5056719/using-httplib2-on-python-appengine

Jason Hall via StackOverflow

unread,
Sep 7, 2013, 6:45:41 PM9/7/13
to google-appengin...@googlegroups.com

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.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/5056719/using-httplib2-on-python-appengine/5056764#5056764

Jose Muanis via StackOverflow

unread,
Sep 7, 2013, 6:45:43 PM9/7/13
to google-appengin...@googlegroups.com

I've created a simple example on how to do this when using Google App Engine. (https://github.com/muanis/foursquare-oauth-bootstrap) basically you need Google oAuth2 Client (http://code.google.com/p/google-api-python-client/) and httplib2 (http://code.google.com/p/httplib2/)



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/5056719/using-httplib2-on-python-appengine/8697229#8697229
Reply all
Reply to author
Forward
0 new messages