#1040 RuntimeError: [Errno 2] No such file or directory: 'D:/pyVideos/tmp/10584.lock'

123.123* Posted at: 21 hours ago 👁14

语音识别阶段出错:[Errno 2] No such file or directory: 'D:/pyVideos/tmp/10584.lock'[faster-whisper(本地)]:
Traceback (most recent call last):
File "videotrans\task\job.py", line 97, in run
File "videotrans\task\_speech2text.py", line 93, in recogn
File "videotrans\recognition\__init__.py", line 250, in run
File "videotrans\recognition\_base.py", line 70, in run
File "videotrans\recognition\_overall.py", line 144, in _exec
RuntimeError: [Errno 2] No such file or directory: 'D:/pyVideos/tmp/10584.lock'

=====
Windows-10-10.0.26100-SP0
version:v3.80
frozen:True
language:zh

1 Replies

这个错误是由于软件在尝试创建临时锁文件时,指定的临时目录 D:/pyVideos/tmp/ 不存在或无法访问导致的。

请按以下步骤解决:

  1. 检查并创建临时目录

    • 打开资源管理器,导航到 D:/pyVideos/ 目录
    • 在该目录下创建一个名为 tmp 的文件夹
  2. 如果上述方法无效,修改临时目录路径

    • 在软件菜单栏选择 工具/选项 -> 高级选项
    • 找到"临时目录"设置项
    • 将其修改为一个已存在的、有读写权限的目录路径(建议使用纯英文路径)
  3. 确保路径权限

    • 确保所选目录没有特殊权限限制
    • 避免使用系统保护目录(如 Program Files)

完成设置后重新启动软件并重试语音识别功能。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions