因爲我更新的Django Facebook的最新版本我得到這個錯誤:的Django Facebook的超時
TypeError at /facebook/connect/
open() got an unexpected keyword argument 'timeout'
以下是完整的引用:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/views/decorators/csrf.py" in wrapped_view
77. return view_func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django_facebook/decorators.py" in _wrapped_view
92. get_persistent_graph(request, redirect_uri=current_uri)
File "/usr/lib/python2.5/site-packages/django_facebook/api.py" in get_persistent_graph
62. graph = get_facebook_graph(request, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/django_facebook/api.py" in get_facebook_graph
161. code, redirect_uri=redirect_uri)
File "/usr/lib/python2.5/site-packages/open_facebook/api.py" in convert_code
251. response = cls.request('oauth/access_token', **kwargs)
File "/usr/lib/python2.5/site-packages/open_facebook/api.py" in request
75. response = cls._request(url, post_data)
File "/usr/lib/python2.5/site-packages/open_facebook/api.py" in _request
110. timeout=timeout)
Exception Type: TypeError at /facebook/connect/
Exception Value: open() got an unexpected keyword argument 'timeout'
我正在遠程服務器上工作,有0%的機會得到更新。所以這不是選項。我也意識到我使用的Python版本是舊的,並且該參數在版本2.6中添加。 – dark4p
嗯,如果你有外殼訪問(只是沒有根),我會definitley檢查出virtualenv:基本上它使得一個孤立的Python安裝,你有充分的接口來改變和東西等。 –