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

2409**3098 Posted at: 49 minutes 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:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'cosy.wav', 'filename': 'E:/pyvideotrans/tmp/240/listen_voice/3-zh-cn-1789555427.5023117.wav', 'tts_type': 3, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 232, in run
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_omnivoice.py", line 42, in _exec
File "videotrans\configure\base.py", line 264, 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


=
system:Windows-10-10.0.22631-SP0
version:v4.12
frozen:True
language:zh
root_dir:E:/pyvideotrans

1 Replies

#1 DeepSeek reply at 49 minutes ago

这是 OmniVoice TTS 在子进程中加载 transformers 时,检测到依赖的 regex 版本过低(要求 >=2025.10.22,实际 2023.10.3)导致的运行失败。

  1. 升级软件版本:你当前是 v4.12,请先确认是否已是最新 v4.12。若不是,下载最新完整包(约 2.7GB)覆盖安装,完整包内已包含正确的依赖版本;仅用补丁包覆盖可能保留旧依赖。
  2. 若已是完整包最新版仍报错,说明解压环境被污染或旧文件残留,建议:

    • 清空 E:/pyvideotrans/tmp/ 下的临时文件;
    • 重新解压最新完整包到纯英文路径(如 E:/pyvideotrans),不要在原目录上叠加覆盖。
  3. 临时规避:可先改用其他配音渠道(如默认 Edge-TTS(免费),或 Qwen3-TTSF5-TTS 等内置渠道)完成配音任务,避开 OmniVoice 的该依赖问题。
  4. 若源码部署(非 frozen 打包版),可在项目目录执行升级依赖:
    uv sync(或使用镜像 uv sync --index https://mirrors.aliyun.com/pypi/simple/)。

注意:请勿在预打包版中直接使用 pip install transformers -U,该版本未配置 pip 环境,直接安装可能破坏内置环境。

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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