#8826 配音阶段出错 [OmniVoice(内置)] Subprocess Error: regex>=2025.10.22 is required for a normal functioning of this module, but foun

216.152**9 Posted at: 10 hours ago

配音阶段出错 [OmniVoice(内置)] 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\job.py", line 35, in run

File "videotrans\task\job.py", line 152, in process_task

File "videotrans\task\dubbing.py", line 86, in dubbing

File "videotrans\task\dubbing.py", line 253, in _tts

File "videotrans\tts\__init__.py", line 135, in run

File "videotrans\tts\_base.py", line 98, in run

File "videotrans\tts\_omnivoice.py", line 42, in _exec

File "videotrans\configure\base.py", line 291, 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
trk=文字配音
self.cfg.name='E:/huan/tmp/21040/20261117-163107.txt',
输出目录: E:/huan/output/tts,
self.cfg.cache_folder='E:/huan/tmp/21040/9bc811838f'
self.cfg.is_cuda=True
配音渠道:OmniVoice(内置), 配音角色:en_female_1.wav, 目标语言:th
Volume:+10%, Speed:+9%, 未选 配音加速
输出格式: mp3
未选 删字幕间静音, 未选 对齐字幕声音
已选 移除每条字幕配音开头结尾静音缓冲
静音移除力度: default
self.cfg=TaskCfgTTS(uuid='9bc811838f', name='E:/huan/tmp/21040/20261117-163107.txt', dirname='E:/huan/tmp/21040', noextname='20261117-163107', basename='20261117-163107.txt', ext='txt', target_dir='E:/huan/output/tts', cache_folder='E:/huan/tmp/21040/9bc811838f', is_cuda=True, source_language='', source_language_code='', source_sub=None, source_wav=None, source_wav_output=None, target_language='', target_language_code='th', target_sub='E:/huan/tmp/21040/20261117-163107.txt', target_wav='E:/huan/output/tts/20261117-163107.wav', target_wav_output=None, tts_type=3, volume='+10%', pitch='+1Hz', voice_rate='+9%', voice_role='en_female_1.wav', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.19045-SP0
version:v4.18
frozen:True
language:zh_CN
root_dir:E:/huan

1 Replies

#1 DeepSeek reply at 10 hours ago

这是预打包版(frozen:True)中 Python 依赖库 regex 版本过旧导致的冲突:OmniVoice 内置模型加载时要求 regex>=2025.10.22,而当前软件环境里是 regex==2023.10.3。预打包版无法执行 pip install,必须通过覆盖官方升级包来更新依赖。

处理步骤:

  1. 前往官网下载 最新 v4.19 完整包或补丁包(不要只替换 sp.exe):
    https://pyvideotrans.com/downpackage
  2. 将压缩包内 所有文件与文件夹(尤其是 sp.exe、_internal、videotrans)完整覆盖到 E:/huan 目录下的旧版文件中。只覆盖 sp.exe 不会更新依赖,仍会报此错。
  3. 若覆盖后仍提示版本过旧,说明存在 Python 缓存残留:

    • 进入 E:/huan/_internal 文件夹;
    • 在搜索框搜索 __pycache__,将搜到的所有文件和文件夹全部删除;
    • 重新覆盖一遍补丁包。
  4. 升级操作不会丢失你的配置(videotrans/params.json、cfg.json 会保留)。若仍希望先跑通任务,可暂时把配音渠道换成 Edge-TTS(免费) 完成本次配音。

补充说明:

  • 你的目标语言为 th(泰语)、配音角色为 en_female_1.wav 参考音频,OmniVoice 支持多语言克隆,更换渠道前请确认新渠道是否支持泰语。
  • 若覆盖完整包后依然报同样的 regex 版本错误,请提供覆盖后 logs/ 目录下最新日志的底部约 30 行,以便进一步核对依赖版本。

请查阅相关文档:

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