#5346 FileNotFoundError: [Errno 2] No such file or directory: 'D:\\My Softwares\\视频翻译配音 Pyvideotran 4.03-0622\\tmp\\4360\\dc99

120.217* Posted at: 2 days ago

FileNotFoundError: [Errno 2] No such file or directory: 'D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\tmp\4360\dc99d9ce9a\faster-en-1782035725.4663105.log'
[ERROR] 写入新进程日志时出错[Errno 2] No such file or directory: 'D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\tmp\4360\dc99d9ce9a\faster-en-1782035725.4663105.log'
Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 657, in _write_log
File "pathlib.py", line 1154, in write_text
File "pathlib.py", line 1119, in open
FileNotFoundError: [Errno 2] No such file or directory: 'D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\tmp\4360\dc99d9ce9a\faster-en-1782035725.4663105.log'

1 Replies

这是由于软件安装路径中包含中文、空格导致的文件系统写入失败。pyVideoTrans 的临时工作目录 tmp/ 需要依赖系统命令行,而 Windows 命令提示符对含有空格和中文的路径兼容性差,导致无法创建或读取日志文件。

解决方案:

  1. 彻底删除当前解压的文件夹
  2. 将压缩包解压到一个不包含中文、空格、特殊符号的目录下,例如 D:\pyVideoTrans
  3. 确保解压后直接在根目录双击 sp.exe 运行,不要再移动或嵌套子目录。

请查阅相关文档:

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: ko-fi.com/jianchang512

Related resource

Similar issues already exist