python - Pywikibot 登录 SSLError 185090050

标签 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

我们将不胜感激任何帮助。

最佳答案

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

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

pip uninstall httplib2
pip install httplib2

关于python - Pywikibot 登录 SSLError 185090050,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32041303/

相关文章:

ssl - openssl :invalid type in 'policy' configuration

javascript - 无法在 Node.js 中使用 ECDH 私钥签署缓冲区

python - 使用Python计算列中的每个元素并创建一个新列

android - 使用空 InputStream 和密码加载 keystore ?

python - 使用 Python cPickle 从文件中读取数据

android - CertPathValidatorException : Trust anchor for certification path not found

node.js - IIS通过https反向代理到nodejs应用的问题

ruby - "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

python - 使用 py2app 一旦 python 为 "compiled",open()/f.write() 就不起作用

javascript - selenium.common.exceptions.WebDriverException : Message: unknown error: 'script' must be a string while using execute_script() through Selenium Python