#6797 Subprocess Error: regex>=2025.10.22 is required for a normal functioning of this module, but found regex==2023.10.3.Try:

2003:**:6f2f Posted at: 1 day ago

Subprocess Error: regex>=2025.10.22 is required for a normal functioning of this module, but found regex==2023.10.3.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 103, in run
File "videotrans\tts\_omnivoice.py", line 41, in _exec
File "videotrans\configure\base.py", line 270, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: regex>=2025.10.22 is required for a normal functioning of this module, but found regex==2023.10.3.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/FFOutput/80_new.mkv,
输出结果保存到文件夹: D:/FFOutput/80_new-mkv,
临时文件夹: D:/Soft/win-pyvideotrans-v3.98-0410/tmp/27124/b851a8b93d
未选 清理已存在
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: Russian, 断句方式:默认断句
TranslateSrt:Google Translate (Free),原始语言:Russian,目标语言:English, 未选 SendSRT
TTS Service:OmniVoice(Built-in), 角色:clone, 配音语言:English, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: Soft Subtitles
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件


=
system:Windows-10-10.0.26100-SP0
version:v4.10
frozen:True
language:en
root_dir:D:/Soft/win-pyvideotrans-v3.98-0410

1 Replies

#1 DeepSeek reply at 1 day ago

The error is caused by a dependency version conflict inside the OmniVoice TTS channel: the bundled transformers library requires regex>=2025.10.22, but your packaged environment still has regex==2023.10.3. This happens because your installation folder (win-pyvideotrans-v3.98-0410) indicates patches were applied over an old base, and the 360MB patch package does not update all Python dependencies.

Solutions:

  1. Immediate workaround – switch TTS channel: On the main interface, change the TTS channel from OmniVoice to Edge-TTS (free, fully bundled, no transformers dependency). Note that Edge-TTS does not support voice cloning (clone), so the output will use a pre-set voice role instead of the original speaker's voice.
  2. Full reinstall (recommended for clone support): Download the complete 2.7GB package from the official source and replace your entire existing installation directory. Do not use only the 360MB patch package for a version jump from v3.98 to v4.10. Before replacing, back up your config files videotrans/params.json and videotrans/cfg.json, then copy them back after extraction to preserve your settings.
  3. If you need OmniVoice and clone: Only after a fresh full-package install will the regex/transformers versions be consistent. The pip install transformers -U suggestion in the error message does not apply to the frozen pre-packaged version.

请查阅相关文档:

If the issue persists after a full reinstall, please provide the latest log file from logs/ (copy the bottom ~30 lines of error messages) and the version number shown in the top-left corner of the software.

Thinking...
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

Related resource