为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:免费版 [url=]8.0.1[/url] 系统版本:CentOS 7.8.2003 x86_64(Py3.7.9)
出错了,面板运行时发生错误!ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)
REQUEST_DATE: 2025-03-14 18:01:50 PAN_VERSION: 8.0.1 OS_VERSION: CentOS 7.8.2003 x86_64(Py3.7.9) REMOTE_ADDR: 113.249.238.13 REQUEST_URI: POST /warning?action=get_listREQUEST_FORM: {} USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36Traceback (most recent call last): File "class/public.py", line 3505, in get_attr tmp_obj = __import__(key) File "class/safe_warning/sw_site_ssl_expire.py", line 15, in import os,sys,re,public,OpenSSL,time File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in from OpenSSL import SSL, crypto File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 15, in from cryptography import x509 File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/__init__.py", line 7, in from cryptography.x509 import certificate_transparency, verification File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/certificate_transparency.py", line 8, in from cryptography.hazmat.bindings._rust import x509 as rust_x509ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2015, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 1962, in run result = getattr(toObject, get.action)(get) File "class/panelWarning.py", line 36, in get_list if p[m_name]._level == 0: continue File "class/public.py", line 3514, in __getitem__ return self.get_attr(key) File "class/public.py", line 3510, in get_attr raise Exception(get_error_info())Exception: Traceback (most recent call last): File "class/public.py", line 3505, in get_attr tmp_obj = __import__(key) File "class/safe_warning/sw_site_ssl_expire.py", line 15, in import os,sys,re,public,OpenSSL,time File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in from OpenSSL import SSL, crypto File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 15, in from cryptography import x509 File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/__init__.py", line 7, in from cryptography.x509 import certificate_transparency, verification File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/x509/certificate_transparency.py", line 8, in from cryptography.hazmat.bindings._rust import x509 as rust_x509ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location) |
|