Pywikibot登录SSLError 185090050

时间:2015-08-17 00:34:03

标签: python ssl certificate pywikibot

以前我对Pywikibot库和site.login()没有任何问题。

从上周开始,调用此方法会返回以下警告和错误消息:

WARNING: Waiting 40 seconds before retrying.
ERROR: Traceback (most recent call last):
  File "pywikibot/data/api.py", line 1556, in submit
    body=body, headers=headers)
  File "pywikibot/tools/__init__.py", line 1105, in wrapper
    return obj(*__args, **__kw)
  File "pywikibot/comms/http.py", line 279, in request
    r = fetch(baseuri, method, body, headers, **kwargs)
  File "pywikibot/comms/http.py", line 381, in fetch
    error_handling_callback(request)
  File "pywikibot/comms/http.py", line 297, in error_handling_callback
    raise request.data
SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

任何帮助都将受到高度赞赏。

1 个答案:

答案 0 :(得分:0)

http://webchat.freenode.net/#pywikibot的专家解决了这个问题。

问题在于我的httplib2包。我只是使用以下方法重新安装它:

pip uninstall httplib2
pip install httplib2