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

【已解决】Python项目管理无法添加项目,一键升级宝塔pytho...

发表在 Linux面板2020-2-18 15:41 [复制链接] 2 1676

本帖最后由 谢花郎 于 2020-2-18 16:06 编辑

Python项目管理无法添加项目,一键升级宝塔python3.8后


抱歉,出错了:
Traceback (most recent call last):
File "class/flask_sockets.py", line 30, in __call__
handler, values = adapter.match()
File "/usr/local/python3.8/lib/python3.8/site-packages/werkzeug/routing.py", line 1799, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "class/panelPlugin.py", line 1687, in a
return eval(execStr)
File "", line 1, in
File "plugin/pythonmamager/pythonmamager_main.py", line 262, in CreateProject
requirements = self.__install_module(values["install_module"],values["path"],vpath)
File "plugin/pythonmamager/pythonmamager_main.py", line 95, in __install_module
requirementsconf = public.readFile(requirements).splitlines()
AttributeError: 'bool' object has no attribute 'splitlines'

使用道具 举报 只看该作者 回复
发表于 2020-2-18 16:03:52 | 显示全部楼层
已解决。
原因:
无法识别文件 requirements.txt  的编码。用宝塔重建文件后问题解决
使用道具 举报 回复 支持 反对
发表于 2020-3-2 03:39:21 | 显示全部楼层
宝塔用户_vwctvr 发表于 2020-2-18 16:03
已解决。
原因:
无法识别文件 requirements.txt  的编码。用宝塔重建文件后问题解决 ...

怎么解决我不会
Traceback (most recent call last):
File "class/flask_sockets.py", line 30, in __call__
handler, values = adapter.match()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "class/panelPlugin.py", line 1707, in a
plugin_main = __import__(get.name+'_main')
ImportError: dynamic module does not define module export function (PyInit_btwaf_httpd_main)
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

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

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

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

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表