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

【待反馈】py3.1运行项目报错No such file or directory: 'pybabel' 但

发表在 Linux面板2023-8-2 19:15 [复制链接] 4 646

File "/www/wwwroot/ft-webui/run.py", line 22, in <module>create_babel(app)File "/www/wwwroot/ft-webui/server/babel.py", line 24, in create_babelcompile_translations()File "/www/wwwroot/ft-webui/server/babel.py", line 39, in compile_translationsresult = subprocess.run(File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 501, in runwith Popen(*popenargs, **kwargs) as process:File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 966, in __init__self._execute_child(args, executable, preexec_fn, close_fds,File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 1842, in _execute_childraise child_exception_type(errno_num, err_msg, err_filename)FileNotFoundError: [Errno 2] No such file or directory: 'pybabel'
使用道具 举报 只看该作者 回复
发表于 2023-8-2 19:15:56 | 显示全部楼层
File "/www/wwwroot/ft-webui/run.py", line 22, in <module>
create_babel(app)
File "/www/wwwroot/ft-webui/server/babel.py", line 24, in create_babel
compile_translations()
File "/www/wwwroot/ft-webui/server/babel.py", line 39, in compile_translations
result = subprocess.run(
File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pybabel'
使用道具 举报 回复 支持 反对
发表于 2023-8-2 19:59:53 | 显示全部楼层
WeChat985432aa02cdab1b825ddedaf9ed81c8.jpg 我已经安装了这个模块了 它非要说我没有安装
使用道具 举报 回复 支持 反对
发表于 2023-8-2 23:19:28 | 显示全部楼层
您好,报错信息提示找不到pybabel模块,您可到服务器终端执行以下命令进行安装后再访问面板看是否正常
  1. btpip install pybabel
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-3-23 10:06:03 | 显示全部楼层
您好,这个问题解决了吗
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

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

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

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

立即付费处理
快速回复 返回顶部 返回列表