#7109 语音识别阶段出错[Huggingface_ASR(内置)] Subprocess Error: regex>=2025.10.22 is required for a normal functioning of this module, b

58.255**3 Posted at: 1 hour ago

语音识别阶段出错[Huggingface_ASR(内置)] 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 102, in process_task

File "videotrans\task\speech2text.py", line 100, in recogn

File "videotrans\recognition\__init__.py", line 228, in run

File "videotrans\recognition\_base.py", line 97, in run

File "videotrans\recognition\_huggingface.py", line 35, in _exec

File "videotrans\recognition\_huggingface.py", line 71, in _pipe_asr

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
[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=True,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: G:/网页缓存/百分浏览器/男性を簡単に潮吹きさせる方法!コツは○○を擦りまくる!? - Pornhub.com.mp4,
输出结果保存到文件夹: D:/tool/Video editing/win-pyvideotrans-v3.92/output/recogn,
临时文件夹: D:/tool/Video editing/win-pyvideotrans-v3.92/tmp/5848/04d2d84a65
未启用CUDA加速
未选 降噪
语音识别:Huggingface_ASR(内置), kotoba-tech/kotoba-whisper-v2.0 断句方式:默认断句
发音语言:ja
未选 降噪


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh
root_dir:D:/tool/Video editing/win-pyvideotrans-v3.92

1 Replies

#1 DeepSeek reply at 1 hour ago

语音识别阶段出错是因为软件内置的 transformers 库版本与 regex 库版本不匹配,导致 Huggingface_ASR(内置) 渠道无法正常运行。

你使用的是 Windows 预打包版(frozen:True),无法直接执行 pip 更新,请按以下步骤解决:

  1. 访问官方下载页 https://pyvideotrans.com/downpackage,重新下载当前最新版本的补丁包(约360MB)或完整包(约2.7GB)。
  2. 关闭软件,将下载的补丁包内容解压并覆盖到软件根目录(若版本差距较大,建议直接使用完整包)。
  3. 重新启动 sp.exe,再次执行语音识别。

如果只有源码部署环境(非预打包版),可运行 pip install regex -Upip install transformers -U 解决。

请查阅相关文档:

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