#7704 语音识别阶段出错[faster-whisper(本地内置)] [Errno 2] No such file or directory: 'D:\\program\\videotrans\\tmp\\faster-20260929-22_31

208.87**3 Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(本地内置)] [Errno 2] No such file or directory: 'D:\program\videotrans\tmp\faster-20260929-22_31_24.srt':Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 326, in faster_whisper
File "pathlib.py", line 1154, in write_text
File "pathlib.py", line 1119, in open
FileNotFoundError: [Errno 2] No such file or directory: 'D:\program\videotrans\tmp\faster-20260929-22_31_24.srt'

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\trans_create.py", line 319, in recogn

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

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

File "videotrans\recognition\_whisper.py", line 38, in _exec

File "videotrans\recognition\_whisper.py", line 124, in _faster

File "videotrans\configure\base.py", line 272, in _new_process

videotrans.configure.excepts.VideoTransError: [Errno 2] No such file or directory: 'D:\program\videotrans\tmp\faster-20260929-22_31_24.srt':Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 326, in faster_whisper
File "pathlib.py", line 1154, in write_text
File "pathlib.py", line 1119, in open
FileNotFoundError: [Errno 2] No such file or directory: 'D:\program\videotrans\tmp\faster-20260929-22_31_24.srt'
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: D:/Downloads/Videos/!Submaker/I'm Going to Fuck All of Your Friends and Tell You About It .mp4,
输出结果保存到文件夹: D:/Downloads/Videos/!Submaker/I'm Going to Fuck All of Your Friends and Tell You About It -mp4,
临时文件夹: D:/program/videotrans/tmp/6448/6a0b834b22
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:LLM重新断句
未选 目标语言,不翻译字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/program/videotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

根本原因是你使用的 v4.03 版本过旧。

该报错是旧版本中多进程子任务写入临时 SRT 文件时的已知缺陷(子进程工作目录异常导致找不到 tmp 路径),已在后续版本(尤其是 v4.13 起对进程池与路径处理做了重构)修复。

  1. 升级到最新版本 v4.14:

    • 下载完整的绿色主程序压缩包(约 2.7GB),解压到纯英文路径(如 D:\pyVideoTrans),覆盖旧目录
    • 不要只覆盖 sp.exe,须将新包内的全部文件和文件夹(含 sp.exe、_internal、videotrans)都覆盖过去
    • 升级后若仍提示某些模块版本过低,进入 _internal 文件夹,搜索并删除所有 __pycache__ 文件夹,再重新覆盖
  2. 临时兜底(可选):手动在软件目录下创建对应的 tmp 文件夹(如 D:\program\videotrans\tmp)后再试,但旧版本此问题不保证彻底解决,仍建议升级。

  3. 若升级后仍报错,请提供软件目录下 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