in **oauth2/__init__.py** parse_qs is being imported from **urllib** but in python 2.5.2 it does not exist there but instead in **cgi** I had to add the following to get it to work (taken from here http://vasudevkamath.blogspot.com/2010/12/conditional-import-in-python.html): try: from urlparse import parse_qs, parse_qsl except ImportError: # fall back for Python 2.5 from cgi import parse_qs, parse_qsl I am using Debian (lenny/sid)