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

80.242* Posted at: 19 hours 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 92, 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]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/Ka/Downloads/YTB/Run the GLM-5.2 on Your Laptop Locally (No GPU Needed).mp4,
输出结果保存到文件夹: C:/Users/Ka/Downloads/YTB/_video_out/Run the GLM-5.2 on Your Laptop Locally (No GPU Needed)-mp4,
临时文件夹: D:/PyVideoTrans/tmp/384/4847268621
已选 清理已存在
已选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: large-v3, 发音语言: English, 断句方式:默认断句
Trans Channel:M2M100(LocalBuilt-in),原始语言:English,目标语言:Czech, 已选 Send SRT
Dubb Channel:Edge-TTS(Free), 角色:Antonin(Male/CZ), 配音语言:Czech, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: No Subs
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:en
root_dir:D:/PyVideoTrans

3 Replies

This error is caused by a leftover tensorflow_text issue from a previous version's internal dependencies. After upgrading to v4.05/v4.06, the transformers library version change can leave behind incompatible cache files that trigger this BACKENDS_MAPPING error.

Solution:

  1. Completely shut down pyVideoTrans (ensure no sp.exe process is running).
  2. Delete the _internal folder located inside your pyVideoTrans root directory (D:/PyVideoTrans/_internal).
  3. Download the latest full package (2.7GB) from the official page and extract it overwriting the existing installation (the same D:/PyVideoTrans folder).
  4. Do not apply any patch/update pack on top – use the full package directly.

After doing this, launch sp.exe again. The error should be gone.

If the problem persists, please provide the newly generated logs/YYYYMMDD.log file.

Thanks, that procedure solved my problem.

Great to hear that resolved the issue. If you run into anything else in the future, share the logs and I'll help promptly.

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