【已解决】Python项目管理器无法新增项目
面板无法安装依赖,报错为抱歉,出错了:<br> Traceback (most recent call last):<br>File "class/flask_sockets.py", line 30, in __call__<br> handler, values = adapter.match()<br>File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match<br> raise NotFound()<br>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.<br><br>During handling of the above exception, another exception occurred:<br><br>Traceback (most recent call last):<br>File "class/panelPlugin.py", line 1924, in a<br> return eval(execStr)<br>File "<string>", line 1, in <module><br>File "plugin/pythonmamager/pythonmamager_main.py", line 261, in CreateProject<br> requirements = self.__install_module(values["install_module"],values["path"],vpath)<br>File "plugin/pythonmamager/pythonmamager_main.py", line 95, in __install_module<br> requirementsconf = public.readFile(requirements).splitlines()<br>AttributeError: 'bool' object has no attribute 'splitlines'<br>
解决的,Python 自己 freeze 出的 requirements.txt 文件好像有编码问题,面板不支持。
页:
[1]