宝塔面板出现错误:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with ‘OpenSSL 1.0.2k-fips 26 Jan 2017’. See: https://github.com/urllib3/urllib3/issues/2168

922次阅读
没有评论

共计 1365 个字符,预计需要花费 4 分钟才能阅读完成。

宝塔面板出现下面报错

ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with ‘OpenSSL 1.0.2k-fips 26 Jan 2017’. See: https://github.com/urllib3/urllib3/issues/2168

 

REQUEST_DATE: 2024-03-02 18:23:45 PAN_VERSION: 7.7.0 OS_VERSION: CentOS 7.9.2009 x86_64(Py3.7.9) REMOTE_ADDR: 155.94.135.155 REQUEST_URI: POST /site?action=GetSSL REQUEST_FORM: {‘siteName’: ‘shuidl.com’} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Traceback (most recent call last): File “/www/server/panel/BTPanel/__init__.py”, line 1640, in publicObject return run_exec().run(toObject, defs, get) File “/www/server/panel/BTPanel/__init__.py”, line 1588, in run result = getattr(toObject,get.action)(get) File “class/panelSite.py”, line 2062, in GetSSL import acme_v2 File “class/acme_v2.py”, line 28, in import http_requests as requests File “class/http_requests.py”, line 18, in import requests File “/www/server/panel/pyenv/lib/python3.7/site-packages/requests/__init__.py”, line 43, in import urllib3 File “/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/__init__.py”, line 42, in “urllib3 v2.0 only supports OpenSSL 1.1.1+, currently ” ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with ‘OpenSSL 1.0.2k-fips 26 Jan 2017’. See: https://github.com/urllib3/urllib3/issues/2168
宝塔面板出现错误:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the'ssl'module is compiled with'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168

 

这个错误提示指的是当前面板 python 依赖环境不兼容造成的,在终端下执行

btpip install -I requests==2.27

然后点击修复面板。

 

宝塔面板出现错误:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the'ssl'module is compiled with'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168

正文完
 0
水东柳
版权声明:本站原创文章,由 水东柳 于2024-03-02发表,共计1365字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)