宝塔用户_hssplm 发表于 2024-2-27 05:40:39

【待反馈】命令行启动面板报错

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
系统版本:Win server 2016
问题描述:面板问题
相关截图(日志、错误):
重启一次服务器后命令行无法启动面板
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
Traceback (most recent call last):
File "D:\BtSoft\panel/runserver.py", line 195, in <module>
    from BTPanel import app,sys
File "D:\BtSoft\panel\BTPanel\__init__.py", line 16, in <module>
    from flask import Config, Flask, session, render_template, send_file, request, redirect, g, make_response, render_template_string, abort, Response as Resp
File "C:\Program Files\python\lib\site-packages\flask\__init__.py", line 14, in <module>
    from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (C:\Program Files\python\lib\site-packages\jinja2\__init__.py)

阿珂 发表于 2024-2-27 10:37:24

可以尝试先修复一下面板,然后再尝试前面的操作看是否可行;
cmd命令行执行bt 选择16或者17进行修复
如果不行,可能是面板依赖的python环境损坏了,先停止宝塔面板,然后将下面这个目录删掉
C:\Program Files\python
然后下载这个包覆盖安装一下看看是否能解决,覆盖安装不影响原来数据与正在运行的网站。
http://download.bt.cn/win/panel/BtSoft.zip
页: [1]
查看完整版本: 【待反馈】命令行启动面板报错