在创建flask框架的python项目时安装不了依赖,一勾选安装依赖包就出现错误,求助,具体内容如下:
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/public.py", line 293, in ReadFile
f_body = fp.read()
File "/www/server/panel/pyenv/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self. _buffer_decode(data, self. errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "class/public.py", line 299, in ReadFile
f_body = fp.read()
File "/www/server/panel/pyenv/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self. _buffer_decode(data, self. errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "class/panelPlugin.py", line 1959, in a
return eval(execStr)
File "", line 1, in
File "plugin/pythonmamager/pythonmamager_main.py", line 266, in CreateProject
requirements = self.__install_module(values["install_module"],values["path"],vpath)
File "plugin/pythonmamager/pythonmamager_main.py", line 100, in __install_module
requirementsconf = public.readFile(requirements).splitlines()
File "class/public.py", line 317, in readFile
return ReadFile(filename,mode)
File "class/public.py", line 303, in ReadFile
f_body = fp.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 0: illegal multibyte sequence
|
-
|