#7078 语音识别阶段出错[阿里FunASR(内置)] Subprocess Error: regex>=2025.10.22 is required for a normal functioning of this module, but foun

111.240**7 Posted at: 1 hour ago

语音识别阶段出错[阿里FunASR(内置)] 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 211, in run

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

File "videotrans\recognition\_funasr.py", line 72, 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
[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=False,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: F:/1644463090034.m4a,
输出结果保存到文件夹: F:/tools/win-pyvideotrans/output/recogn,
临时文件夹: F:/tools/win-pyvideotrans-v3.98-312/tmp/23600/f0590e75de
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量2
语音识别:阿里FunASR(内置), paraformer-zh 断句方式:默认断句
发音语言:zh-tw
未选 降噪


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:F:/tools/win-pyvideotrans-v3.98-312

1 Replies

#1 DeepSeek reply at 1 hour ago

这是预打包版中 regex 依赖版本过低(2023.10.3)与阿里 FunASR 所需的 regex>=2025.10.22 发生冲突,导致子进程初始化失败。由于你是 Windows 预打包版(frozen:True),无法直接执行 pip install 升级,请按以下顺序尝试解决:

  1. 重新下载官方最新完整包并覆盖:先去 下载页面 下载最新 2.7GB 完整包,解压后覆盖当前目录。若只覆盖了补丁包,可能仍保留旧依赖。注意解压路径仅限英文/数字,不要放在含中文或特殊符号的目录中。
  2. 暂时更换语音识别渠道:如果问题依旧,可先切换到 faster-whisper(内置)openai-whisper(内置) 等渠道,规避此依赖冲突。
  3. 尝试关闭“识别说话人”:当前开启的说话人分离也可能引入额外依赖问题,可在转录界面取消勾选后重试。
  4. 若你是源码部署(虽然日志显示为冻结版,但可确认),则在软件根目录执行 uv sync --index https://mirrors.aliyun.com/pypi/simple/pip install regex -U 升级依赖即可。

如果以上操作后仍报错,请提供 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