#5892 Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_textTraceback (most r

58.48* Posted at: 1 hour ago

Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 47, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 205, in run
File "videotrans\recognition\_base.py", line 91, in run
File "videotrans\recognition\_whisper.py", line 38, in _exec
File "videotrans\recognition\_whisper.py", line 124, in _faster
File "videotrans\configure\base.py", line 272, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: E:/ICT VIP/ICT Forex - Market Maker Primer Course-20250817T085822Z-1-001/ICT Forex - Market Maker Primer Course/ICT Forex - 4 The ICT Asian Killzone .mp4,
输出结果保存到文件夹: E:/ICT VIP/ICT Forex - Market Maker Primer Course-20250817T085822Z-1-001/ICT Forex - Market Maker Primer Course/_video_out/ICT Forex - 4 The ICT Asian Killzone -mp4,
临时文件夹: D:/pyvideotrans/win-pyvideotrans-v4.03/tmp/11476/430498b49b
未选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:OpenAI ChatGPT,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/pyvideotrans/win-pyvideotrans-v4.03

1 Replies

<RESULT>
此错误是因为 faster-whisper 的子进程中触发了意外的 tensorflow_text 后端映射失败。faster-whisper 本身不依赖 TensorFlow,该错误通常由用户环境中存在的 TensorFlow 相关包冲突(如安装了 tensorflow-text)或环境变量干扰导致。

尝试解决方法:

  1. 切换语音识别渠道:在软件主界面,将语音识别从 faster-whisper(本地内置) 临时改为 openai-whisper(本地内置),该渠道不依赖 TensorFlow,可绕过此冲突。
  2. 清理冲突环境(仅限源码部署):

    • 打开命令提示符,执行 pip list | findstr tensorflow(Windows)或 pip list | grep tensorflow(macOS/Linux),查看是否安装了 tensorflowtensorflow-text
    • 若存在,执行 pip uninstall tensorflow tensorflow-text 卸载它们(注意:不要卸载 torchctranslate2)。
    • 如果使用 uv 管理环境,运行 uv pip uninstall tensorflow tensorflow-text
    • 然后重新启动 sp.exe

如果以上方法无效,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息)以及软件左上角显示的版本号,以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Dondate via PayPal

Related resource