5
我正在運行提供python-social-auth的django example,並且正在收到以下500服務器錯誤。無法導入名稱SIGNATURE_HMAC
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
我在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
錯誤發生在'requests_oauthlib';確保軟件包是最新的,包括它的需求'oauthlib'。 – robertklep 2013-03-24 10:39:55