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

115.208**7 Posted at: 2 hours 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 232, in run

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

File "videotrans\recognition\_funasr.py", line 72, 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
[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=True,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: H:/0动画启蒙/0 人教PEP版英语 3上/1-6单元单词汇总朗读Words in each unit.mp3,
输出结果保存到文件夹: D:/AI-tool/win-videotrans/output/recogn,
临时文件夹: D:/AI-tool/win-videotrans/tmp/27304/af74eb9937
已启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-Nano-2512 断句方式:默认断句
发音语言:自动检测
未选 降噪


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh
root_dir:D:/AI-tool/win-videotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

这是因为当前内置的 regex 库版本过低(2023.10.3),不满足新版 transformersregex>=2025.10.22 的依赖要求导致的。

解决方案:

  1. 若你是源码部署,在软件根目录执行 uv sync(或 uv sync --index https://mirrors.aliyun.com/pypi/simple/)重新安装依赖;若仍失败,可执行 uv add regex --upgrade
  2. 若你使用的是 Windows 预打包版,无法自行 pip 安装。请前往官网下载最新版补丁包完整包覆盖使用:下载软件
  3. 如果不想折腾依赖,可临时改用其他中文识别渠道替代,例如 Qwen-ASR(内置)Firered中文(内置),中文效果同样较好。

另外提示:你当前的 发音语言 选的是自动检测,此方式仅建议配合 faster-whisper(内置)openai-whisper(内置)Qwen-ASR(内置) 使用,FunASR 渠道建议明确指定发音语言(如 zh-cn)以避免不可预期的错误。

请查阅相关文档:

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