【已完成】面板出错,修复面板也没用
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.1.0系统版本:系统:CentOS 7.9.2009 x86_64(Py3.7.9)
问题描述:面板出错,修复面板也没用
相关截图(日志、错误):
1
REQUEST_DATE: 2024-08-10 07:25:03VERSION: CentOS7.9.2009 x86_64(Py3.7.9) - 9.1.0 REMOTE_ADDR: 49.84.97.47 REQUEST_URI: POST /panel/public/get_public_config?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
2
Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2435, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2382, in run result = getattr(toObject, get.action)(get)File "/www/server/panel/class/panelController.py", line 81, in model result = PluginLoader.module_run(module_name,def_name,pdata)File "/www/server/panel/class/panelModel/publicModel.py", line 59, in get_public_config data = _config_obj.get_config(args)File "class/config.py", line 1773, in get_config from password import passwordFile "/www/server/panel/class/password.py", line 20, in import public,data,database,configFile "/www/server/panel/class/database.py", line 26, in import db_mysqlFile "/www/server/panel/class/db_mysql.py", line 16, in import pymysqlFile "/www/server/panel/pyenv/lib/python3.7/site-packages/pymysql/__init__.py", line 78, in from . import connections# noqa: E402File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymysql/connections.py", line 13, in from . import _authFile "/www/server/panel/pyenv/lib/python3.7/site-packages/pymysql/_auth.py", line 9, in from cryptography.hazmat.primitives import serialization, hashesFile "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in from cryptography.hazmat.primitives._serialization import (File "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/_serialization.py", line 10, in from cryptography.hazmat.primitives.hashes import HashAlgorithmFile "/www/server/panel/pyenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/hashes.py", line 87, in Hash = rust_openssl.hashes.HashAttributeError: module 'cryptography.hazmat.bindings._rust.openssl' has no attribute 'hashes'
btpip install -r /www/server/panel/requirements.txt && bt restart
您好,您到服务器 SSH 终端里执行上面的命令,
上面提供的信息来看,是面板使用的 pyopenssl 版本对不上导致的,您修复后如果还是无法正常使用,请扫码联系我
已解决哈,解决了面板的依赖,又出现了腾讯云依赖的问题,问题样式
ModuleNotFoundError: No module named "tencentcloud'
解决方案
btpip install -i https://mirrors.tencent.com/pypi/simple/ --upgrade tencentcloud-sdk-python
页:
[1]