#644 RuntimeError: [Errno 2] No such file or directory: 'E:/Software/AI/Trans-Movie/win-videotrans/tmp/30684.lock'

*8a28:5684* Posted at: 11 hours ago 👁6

语音识别阶段出错:[Errno 2] No such file or directory: 'E:/Software/AI/Trans-Movie/win-videotrans/tmp/30684.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: 'E:/Software/AI/Trans-Movie/win-videotrans/tmp/30684.lock'

=====

Windows-10-10.0.26200-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于 pyVideoTrans 在语音识别阶段无法创建或访问临时锁文件(.lock)导致的,通常与软件安装路径或临时文件夹的权限有关。

问题分析:

错误日志显示,软件尝试在路径 'E:/Software/AI/Trans-Movie/win-videotrans/tmp/30684.lock' 创建一个锁文件时失败,系统提示“没有这样的文件或目录”。这通常意味着:

1. 软件安装路径 E:/Software/AI/Trans-Movie/win-videotrans/ 可能不存在,或者路径中包含中文或特殊字符(如空格),导致软件无法正确识别。

2. 软件没有足够的权限在该路径下创建和写入文件。

3. 软件在运行时,其所需的临时文件夹(tmp)被意外删除或无法访问。

解决方案:

请按照以下步骤操作,这通常能解决此类问题:

1. 检查并简化安装路径(最重要的一步):

  • 强烈建议将 pyVideoTrans 软件移动到一个更简单、更“干净”的路径下。例如 D:\pyVideoTransC:\Program Files\pyVideoTrans
  • 关键点: 新路径应满足:
  • 使用英文路径,避免任何中文或特殊符号。
  • 路径尽量短,避免过深的文件夹嵌套。
  • 确保您对该路径有完全的读写权限。

2. 以管理员身份运行:

  • 在移动软件后,右键点击 pyVideoTrans 的主程序,选择 “以管理员身份运行”。这可以确保软件有足够的系统权限来创建必要的临时文件。

3. 重新尝试翻译:

  • 完成上述步骤后,重新启动软件并再次尝试视频翻译任务。

如果问题依然存在,建议访问官方文档 https://pyvideotrans.com 查看是否有更详细的故障排除指南,或从下载页面 https://pyvideotrans.com/downpackage 重新下载最新版本的软件进行安装。

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

Trending Questions