#8827 配音阶段出错 [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/22752/20261117-163716.txt',
输出目录: E:/huan/output/tts,
self.cfg.cache_folder='E:/huan/tmp/22752/d2c6c60d63'
self.cfg.is_cuda=True
配音渠道:OmniVoice(内置), 配音角色:en_female_1.wav, 目标语言:th
Volume:+10%, Speed:+9%, 未选 配音加速
输出格式: mp3
未选 删字幕间静音, 未选 对齐字幕声音
已选 移除每条字幕配音开头结尾静音缓冲
静音移除力度: default
self.cfg=TaskCfgTTS(uuid='d2c6c60d63', name='E:/huan/tmp/22752/20261117-163716.txt', dirname='E:/huan/tmp/22752', noextname='20261117-163716', basename='20261117-163716.txt', ext='txt', target_dir='E:/huan/output/tts', cache_folder='E:/huan/tmp/22752/d2c6c60d63', 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/22752/20261117-163716.txt', target_wav='E:/huan/output/tts/20261117-163716.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)内的 regex 库版本过旧(2023.10.3),而新版 OmniVoice 所依赖的 transformers 要求 regex>=2025.10.22。报错中提示的 pip install 命令对预打包版无效,请不要执行。

解决方案(按顺序尝试)

  1. 确认下载的是完整包还是补丁包

    • 补丁包(约 260MB)只含更新文件,若你之前是旧版完整包,仅覆盖 sp.exe 是不够的。
    • 必须将补丁包内的 所有文件和文件夹(sp.exe、_internal/、videotrans/ 等)全部覆盖到软件根目录 E:/huan,不能只替换 sp.exe。
  2. 最稳妥:重新下载完整包

    • 到 https://pyvideotrans.com/downpackage 下载 2.6GB+ 最新完整包,解压到新目录(如 D:/pyvideotrans),不要与旧目录混用。
    • 如需保留原有配置,把旧目录 videotrans/ 下的 params.json、cfg.json 复制到新目录对应位置即可(这两个文件不在完整包内,不会冲突)。
  3. 若已完整覆盖仍报同一错误 → 清理缓存

    • 在 E:/huan/_internal 文件夹内搜索 __pycache__,将搜索到的所有文件和文件夹全部删除,然后重新覆盖补丁包再启动。
  4. 临时绕过

    • 在依赖未修复前,配音渠道先改用 Edge-TTS(免费)(默认渠道)或其他渠道完成本次任务。

请查阅相关文档:

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