不大点事 发表于 2023-12-29 14:06:04

宝塔更新到8.0.4出错了

今天 刚更新的了下宝塔,就出这个问题了,修复也没有用

出错了,面板运行时发生错误!
TabError: inconsistent use of tabs and spaces in indentation

REQUEST_DATE: 2023-12-29 14:00:52 PAN_VERSION: 8.0.4OS_VERSION: CentOS7.4.1708 x86_64(Py3.7.9) REMOTE_ADDR: 58.216.230.74 REQUEST_URI: POST /plugin?action=get_soft_findREQUEST_FORM: {'sName': 'btapp'}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app    response = self.full_dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request    rv = self.handle_user_exception(e)File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request    rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request    return self.ensure_sync(self.view_functions)(**view_args)File "/www/server/panel/BTPanel/__init__.py", line 1065, in plugin    import panelPluginFile "/www/server/panel/class/panelPlugin.py", line 748    if not pluginInfo: return True                                 ^TabError: inconsistent use of tabs and spaces in indentation

不大点事 发表于 2023-12-29 14:19:17

我自己找到办法了,如下:
自己手动把报错文件的748行的制表位改一下,我是复制到vscode手动打4个tap键就解决,之后重启一下就行了。这种错误编辑器直接报错,结果都没发现就推正式版了。 醉了。。。。。
页: [1]
查看完整版本: 宝塔更新到8.0.4出错了