当前位置:论坛首页 > Linux面板 > 求助

【待反馈】出错了,面板运行时发生错误! AttributeError: mod...

发表在 Linux面板2024-4-6 11:20 [复制链接] 7 178

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

免费版
[size=1.2][url=] 8.0.6 [/url]
系统版本:

免费版
[size=1.2][url=] 8.0.6 [/url]
问题描述:

出错了,面板运行时发生错误!            AttributeError: module 'cryptography.hazmat.bindings._rust.openssl' has no attribute 'hashes'   
相关截图(日志、错误):

出错了,面板运行时发生错误!            AttributeError: module 'cryptography.hazmat.bindings._rust.openssl' has no attribute 'hashes'   
    REQUEST_DATE: 2024-04-06 11:19:51  VERSION: CentOS  7.6.1810 x86_64(Py3.7.9) - 8.0.6 REMOTE_ADDR: 183.31.65.89 REQUEST_URI: POST /panel/public/get_public_config?REQUEST_FORM: {}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0    Traceback (most recent call last):  File "/www/server/panel/BTPanel/__init__.py", line 2422, in publicObject    res = run_obj.run(toObject, defs, get)  File "/www/server/panel/BTPanel/__init__.py", line 2369, in run    result = getattr(toObject, get.action)(get)  File "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 58, in get_public_config    data = _config_obj.get_config(args)  File "class/config.py", line 1659, in get_config    from password import password  File "/www/server/panel/class/password.py", line 20, in     import public,data,database,config  File "/www/server/panel/class/database.py", line 26, in     import db_mysql  File "/www/server/panel/class/db_mysql.py", line 16, in     import pymysql  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymysql/__init__.py", line 59, in     from . import connections  # noqa: E402  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymysql/connections.py", line 13, in     from . import _auth  File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymysql/_auth.py", line 9, in     from cryptography.hazmat.primitives import serialization, hashes  File "/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 HashAlgorithm  File "/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'   
  • 很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
  • 修复方案一:在[首页]右上角点击修复面板,并退出面板重新登录。[url=]尝试点击修复[/url]
  • 修复方案二:如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:https://www.bt.cn/bbs
使用道具 举报 只看该作者 回复
发表于 2024-4-6 11:24:02 | 显示全部楼层
添加新网站php一直显示静态
使用道具 举报 回复 支持 反对
发表于 2024-4-6 11:30:19 | 显示全部楼层
您好,修复面板之后再访问试试
使用道具 举报 回复 支持 反对
发表于 2024-4-6 11:34:18 | 显示全部楼层
修复几次了,一直这样
使用道具 举报 回复 支持 反对
发表于 2024-4-6 11:35:38 | 显示全部楼层
运维技术南一 发表于 2024-4-6 11:30
您好,修复面板之后再访问试试

修复几次了,一直这样

使用道具 举报 回复 支持 反对
发表于 2024-4-6 13:31:04 | 显示全部楼层
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./pyenv/lib/python3.7/site-packages (from requests<3.0.0,>=2.24.0->geoip2==4.7.0) (1.26.2)
Requirement already satisfied: idna<3,>=2.5 in ./pyenv/lib/python3.7/site-packages (from requests<3.0.0,>=2.24.0->geoip2==4.7.0) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in ./pyenv/lib/python3.7/site-packages (from requests<3.0.0,>=2.24.0->geoip2==4.7.0) (2020.12.5)
Requirement already satisfied: importlib-metadata in ./pyenv/lib/python3.7/site-packages (from attrs>=17.3.0->aiohttp<4.0.0,>=3.6.2->geoip2==4.7.0) (6.7.0)
Requirement already satisfied: zipp>=0.5 in ./pyenv/lib/python3.7/site-packages (from importlib-metadata->attrs>=17.3.0->aiohttp<4.0.0,>=3.6.2->geoip2==4.7.0) (3.15.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.3.1; however, version 24.0 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
Looking in indexes: https://mirrors.tencent.com/pypi/simple
Requirement already satisfied: pandas in ./pyenv/lib/python3.7/site-packages (1.3.5)
Requirement already satisfied: pytz>=2017.3 in ./pyenv/lib/python3.7/site-packages (from pandas) (2020.5)
Requirement already satisfied: numpy>=1.17.3 in ./pyenv/lib/python3.7/site-packages (from pandas) (1.21.6)
Requirement already satisfied: python-dateutil>=2.7.3 in ./pyenv/lib/python3.7/site-packages (from pandas) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in ./pyenv/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.3.1; however, version 24.0 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
修复面板依赖完成!
===========================================
===========================================
正在更新面板文件...............
更新完成!
===========================================
=====================================
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting Bt-Panel... Bt-Panel (pid 3560) already running
Starting Bt-Tasks... Bt-Tasks (pid 3615) already running
已成功升级到[8.0.6]

J$%0KQ}O92[]K7`)4OWA7A7.png
使用道具 举报 回复 支持 反对
发表于 2024-4-6 13:32:25 | 显示全部楼层
运维技术南一 发表于 2024-4-6 11:30
您好,修复面板之后再访问试试

修复了还是一直不行,打开宝塔就提示要修复,但是一直修复不了
J$%0KQ}O92[]K7`)4OWA7A7.png
使用道具 举报 回复 支持 反对
发表于 2024-4-15 23:42:36 | 显示全部楼层
我这也是这样,不知道怎么修复了!
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表