#2652 FileNotFoundError: [WinError 2] 系统找不到指定的文件。: 'E:\\配音\\1.12\\1月12日 (2)\\_video_out\\1月14日-1-mp4\\zh-cn.srt'

183.187* Posted at: 12 hours ago 👁12

Traceback (most recent call last):
File "videotrans\mainwin\_actions.py", line 939, in update_data
File "videotrans\component\onlyone_set_role.py", line 337, in init
File "pathlib.py", line 1004, in samefile
File "pathlib.py", line 1095, in stat
FileNotFoundError: [WinError 2] 系统找不到指定的文件。: 'E:\配音\1.12\1月12日 (2)\_video_out\1月14日-1-mp4\zh-cn.srt'


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/配音

1 Replies

这个错误表明软件在尝试读取一个已生成的字幕文件时,找不到该文件。通常是因为文件路径中包含特殊字符(如中文括号、空格),导致 Windows 系统在创建或读取文件时出现问题。

核心解决方法:规范化您的输入文件路径。

请按以下步骤操作:

  1. 重命名输入文件:将您的原始视频文件(例如 1月12日 (2).mp4)重命名为一个纯英文或数字的名称,例如 video.mp4
  2. 移动文件位置:将重命名后的文件移动到一个路径简单、不包含中文或特殊符号的文件夹中,例如 E:\temp\video.mp4
  3. 重新处理:在软件主界面,导入这个新路径下的文件进行处理。
  4. 清理缓存:在导入前,请务必勾选主界面第1行的 “清理已生成” 选项,以确保软件重新处理,而不是使用旧的错误缓存。

重要提示

  • 这是 Windows 系统下处理包含特殊字符文件名的常见问题。
  • 软件内部会尝试规范化路径,但某些情况下(如路径嵌套过深、包含括号等)仍可能失败。
  • 养成使用短英文名简单路径的习惯,可以避免绝大多数此类问题。

请查看更多参考文档:

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