I am running a django example with python-social-auth and I am getting the following 500 server error.
ImportError at /login/bitbucket/
cannot import name SIGNATURE_HMAC
Request Method: GET
Request URL: http://localhost:8000/login/bitbucket/
Django Version: 1.4.4
Exception Type: ImportError
Exception Value:
cannot import name SIGNATURE_HMAC
Exception Location: /usr/local/lib/python2.7/dist-packages/requests_oauthlib/core.py in <module>, line 3
Python Executable: /usr/bin/python
Python Version: 2.7.3
I searched on Google and StackOverflow and could not find the answers. I just cloned it and did not change any code. I have the hashlib and hmac libraries installed.
[EDIT] I updated both oauthlib and request_oauthlib, and the error was replaced with a new one.
AttributeError at /login/bitbucket/
'Request' object has no attribute 'body'
Request Method: GET
Request URL: http://localhost:8000/login/bitbucket/
Django Version: 1.4.4
Exception Type: AttributeError
Exception Value:
'Request' object has no attribute 'body'
Exception Location: /usr/local/lib/python2.7/dist-packages/requests_oauthlib/core.py in __call__, line 46
Python Executable: /usr/bin/python
Python Version: 2.7.3
source
share