【已完成】出错了,面板运行时发生错误! AttributeError: m
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本: PAN_VERSION: 8.1.0系统版本:Windows 10 Pro (build 18363) x64 (Py3.8.6)
问题描述:出错了,面板运行时发生错误!AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
相关截图(日志、错误):
REQUEST_DATE: 2024-07-29 11:28:00
PAN_VERSION: 8.1.0
OS_VERSION: Windows 10 Pro (build 18363) x64 (Py3.8.6)
REMOTE_ADDR: 127.0.0.1
REQUEST_URI: POST /site?action=get_site_types
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
Traceback (most recent call last):
File "D:\BtSoft\panel/class\panelSite.py", line 20, in
from OpenSSL import crypto
File "C:\Program Files\python\lib\site-packages\OpenSSL\__init__.py", line 8, in
from OpenSSL import crypto, SSL
File "C:\Program Files\python\lib\site-packages\OpenSSL\crypto.py", line 1517, in
class X509StoreFlags(object):
File "C:\Program Files\python\lib\site-packages\OpenSSL\crypto.py", line 1535, in X509StoreFlags
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Program Files\python\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions(**req.view_args)
File "D:\BtSoft\panel\BTPanel\__init__.py", line 630, in site
import panelSite
File "D:\BtSoft\panel/class\panelSite.py", line 25, in
from OpenSSL import crypto
File "C:\Program Files\python\lib\site-packages\OpenSSL\__init__.py", line 8, in
from OpenSSL import crypto, SSL
File "C:\Program Files\python\lib\site-packages\OpenSSL\crypto.py", line 1517, in
class X509StoreFlags(object):
File "C:\Program Files\python\lib\site-packages\OpenSSL\crypto.py", line 1535, in X509StoreFlags
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
这个问题不知道咋处理。出现这个错误,没法添加网站。 尝试过修复,不行。 升级openssl,一般是安装openssl-dev或openssl-devel 您好,win7/10/11的操作系统已经不在维护了,这边建议您更换windows server 2008及以上的操作系统 mxdyeah 发表于 2024-7-29 15:15
升级openssl,一般是安装openssl-dev或openssl-devel
装了“OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)”,还是不行。是对版本也有要求吗? 陆柱富 发表于 2024-7-29 18:18
装了“OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)”,还是不行。是对版本也有要求吗 ...
可能是对系统的问题,建议使用windows server 2008版本及以上 陆柱富 发表于 2024-7-29 18:18
装了“OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)”,还是不行。是对版本也有要求吗 ...
换Windows Server解决了
页:
[1]