#3848 TaskCfg(cache_folder='C:/Users/Muhammed/Desktop/pyvideotrans-v3.91/tmp/3496/bc9e5950b3', target_dir='M:/Tutorials/Houdin

2a00:1d34* Posted at: 4 days ago 👁29

File not found: M:\Tutorials\Houdini Learn Paths\Getting Started\H21 Foundations Welcome\_video_out\H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4\tr.srt
Traceback (most recent call last):
File "videotrans\task\job.py", line 259, in run
File "videotrans\task\trans_create.py", line 559, in align
File "pathlib.py", line 1117, in open
FileNotFoundError: [Errno 2] No such file or directory: 'M:\Tutorials\Houdini Learn Paths\Getting Started\H21 Foundations Welcome\_video_out\H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4\tr.srt'

TaskCfg(cache_folder='C:/Users/Muhammed/Desktop/pyvideotrans-v3.91/tmp/3496/bc9e5950b3', target_dir='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/_video_out/H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='English', target_language='Turkish', source_language_code='en', target_language_code='tr', source_sub='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/_video_out/H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4/en.srt', target_sub='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/_video_out/H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4/tr.srt', source_wav='C:/Users/Muhammed/Desktop/pyvideotrans-v3.91/tmp/3496/bc9e5950b3/en.wav', source_wav_output='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/_video_out/H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4/en.m4a', target_wav='C:/Users/Muhammed/Desktop/pyvideotrans-v3.91/tmp/3496/bc9e5950b3/target.wav', target_wav_output='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/_video_out/H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4/tr.m4a', subtitles='', novoice_mp4='C:/Users/Muhammed/Desktop/pyvideotrans-v3.91/tmp/3496/bc9e5950b3/novoice.mp4', noextname='H21 Foundations - Welcome 1 - Model a Cup [14-28]', shibie_audio=None, targetdir_mp4='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/_video_out/H21 Foundations - Welcome 1 - Model a Cup [14-28]-mp4/H21 Foundations - Welcome 1 - Model a Cup [14-28].mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Ahmet(Male/TR)', copysrt_rawvideo=False, clear_cache=True, translate_type=1, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=False, cuda=True, name='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome/H21 Foundations - Welcome 1 - Model a Cup [14-28].mp4', basename='H21 Foundations - Welcome 1 - Model a Cup [14-28].mp4', ext='mp4', dirname='M:/Tutorials/Houdini Learn Paths/Getting Started/H21 Foundations Welcome', shound_del_name=None, uuid='bc9e5950b3', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.91
frozen:True
language:en
root_dir:C:/Users/Muhammed/Desktop/pyvideotrans-v3.91

1 Replies

The error occurs because the software is trying to read a translated subtitle file (tr.srt) that does not exist in the expected output directory. This typically happens when the translation step fails silently or the file path is too long for Windows to handle.

Solution Steps:

  1. Check the Translation Step: The translation process (from English to Turkish using the "Microsoft (free)" channel, as indicated by translate_type=1) might have failed without generating the tr.srt file. Check the logs for any earlier errors related to translation.
  2. Shorten File Paths: The file path is extremely long and contains spaces and special characters ([14-28]). This is a known cause of ffmpeg and file access errors in Windows.

    • Move the original video file to a simpler directory, such as D:\videos.
    • Rename the video file to a short, English-only name without spaces or special characters (e.g., cup_tutorial.mp4).
  3. Re-run with Clean Cache: Ensure the "Clean generated" checkbox is selected on the main interface to force reprocessing from scratch.
  4. Verify Translation Settings: Confirm that your Microsoft Translate settings (or any proxy settings if needed) are correctly configured in Menu -> Translation Settings.

If the problem persists after shortening the path, please provide the log entries from the translation phase (look for lines containing "translate" or "微软" in your log file).

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