我正在运行
python-social-auth提供的
django example,并且我收到以下500服务器错误.
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 , line 3
Python Executable: /usr/bin/python
Python Version: 2.7.3
我在Google和StackOverflow中搜索过,无法找到任何答案.我刚刚克隆了它,并没有改变任何代码.我安装了hashlib和hmac库
[编辑]
我升级了oauthlib和requests_oauthlib,错误被新的替换
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