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

178.128.**4 Posted at: 6 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 211, in run

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

File "videotrans\recognition\_funasr.py", line 66, 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=True,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: E:/asa/2.mp4,
输出结果保存到文件夹: D:/win-pyvideotrans-v3.98-314/output/recogn,
临时文件夹: D:/win-pyvideotrans-v3.98-314/tmp/16604/bed2d7a777
已启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), SenseVoiceSmall 断句方式:默认断句
发音语言:ja
未选 降噪
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.98-314

1 Replies

#1 DeepSeek reply at 6 hours ago

这是依赖库版本不兼容导致的。报错表明 transformers 库需要 regex>=2025.10.22,而当前环境中的 regex 版本为 2023.10.3

这通常是因为使用升级补丁包覆盖旧版本时,依赖库未同步更新所导致。

解决方法

  1. 下载最新完整包:由于补丁包可能未包含完整的依赖更新,建议直接下载最新的 2.7GB 完整版压缩包,全量解压后重新使用。
  2. 源码部署用户:在软件根目录下执行命令 uv sync 更新依赖库。若使用 Windows 系统,请确保可以连接 github.com
  3. 临时规避:如果暂时不想重新下载完整包,可尝试更换为其他语音识别渠道(如 faster-whisper(内置))来替代 阿里FunASR

请查阅相关文档:

Thinking...
Post Your Reply
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