#3220 FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/Lenovo/Downloads/香蕉钓大鱼-mp4/zh-cn.srt'

171.234* Posted at: 14 hours ago 👁17

Traceback (most recent call last):
File "videotrans\mainwin\_actions.py", line 890, in update_data
File "videotrans\component\onlyone_set_recogn.py", line 26, in init
File "videotrans\util\help_srt.py", line 231, in get_subtitle_from_srt
File "videotrans\util\help_srt.py", line 217, in _readfile
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/Lenovo/Downloads/香蕉钓大鱼-mp4/zh-cn.srt'


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:en
root_dir:C:/Users/Lenovo/Downloads/win-pyvideotrans-v3.96

1 Replies

This error occurs because the software cannot find the expected subtitle file (zh-cn.srt) at the specified path. This typically happens when you are trying to use a local SRT file for translation or dubbing, but the file path is incorrect or the file has been moved/deleted.

Solution Steps:

  1. Check the File Path: Verify that the file zh-cn.srt exists in the folder C:\Users\Lenovo\Downloads\香蕉钓大鱼-mp4\. Ensure there are no typos in the filename.
  2. Avoid Special Characters in Paths: The software requires that file paths contain no Chinese characters, spaces, or special symbols. The current path contains Chinese characters (香蕉钓大鱼). This is the most likely cause.

    • Move your video and subtitle files to a new folder with a simple English name, such as D:\pyVideoTrans\work.
    • Update the task in pyVideoTrans to point to the files in this new location.
  3. Re-select the File: If you are using the "Use local SRT file" feature, navigate to the new, simple-path folder and re-select the correct .srt file.
  4. Restart the Software: After moving the files and updating the path, restart pyVideoTrans and try the task again.

Preventive Best Practice: Always store your source videos and work files in a directory with a simple, English-only path, such as D:\pyvideotrans_work.

Please refer to the relevant documentation:

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.

Related resource

Similar issues already exist