#3934 TaskCfgVTT(is_cuda=True, uuid='cbbda7a04b', cache_folder='F:/win-pyvideotrans-v3.98-312/tmp/7364/cbbda7a04b', target_dir

191.6* Posted at: 1 day ago 👁18

Trans Error [Google (Free)] Google Trans Error
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 123, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\trans_create.py", line 645, in trans
File "videotrans\translator\__init__.py", line 935, in run
File "videotrans\translator\_base.py", line 104, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 46, in _item_task
RuntimeError: Google Trans Error
TaskCfgVTT(is_cuda=True, uuid='cbbda7a04b', cache_folder='F:/win-pyvideotrans-v3.98-312/tmp/7364/cbbda7a04b', target_dir='Z:/16-9/baixando/ja usado/_video_out/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back-webm', source_language='English', source_language_code='en', source_sub='Z:/16-9/baixando/ja usado/_video_out/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back-webm/en.srt', source_wav='F:/win-pyvideotrans-v3.98-312/tmp/7364/cbbda7a04b/en.wav', source_wav_output='Z:/16-9/baixando/ja usado/_video_out/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back-webm/en.m4a', target_language='Portuguese', target_language_code='pt', target_sub='Z:/16-9/baixando/ja usado/_video_out/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back-webm/pt.srt', target_wav='F:/win-pyvideotrans-v3.98-312/tmp/7364/cbbda7a04b/target.wav', target_wav_output='Z:/16-9/baixando/ja usado/_video_out/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back-webm/pt.m4a', name='Z:/16-9/baixando/ja usado/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back.webm', noextname='A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back', basename='A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back.webm', ext='webm', dirname='Z:/16-9/baixando/ja usado', shound_del_name=None, translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+3%', voice_role='Antonio(Male/BR)', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=10, model_name='nova-3', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='Z:/16-9/baixando/ja usado/_video_out/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back-webm/A Deadly Virus Turns Everyone Into Zombies, But a Few Soldiers Fight Back.mp4', novoice_mp4='F:/win-pyvideotrans-v3.98-312/tmp/7364/cbbda7a04b/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=True, background_music=None, subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.98
frozen:True
language:en
root_dir:F:/win-pyvideotrans-v3.98-312

1 Replies

This error is caused by a network connectivity issue when attempting to use the Google Translate service. The error RuntimeError: Google Trans Error indicates that the software cannot reach Google's servers, likely due to regional restrictions or lack of a proxy.

Solution:

  1. Configure a Network Proxy: If you are in a region where Google services are blocked (e.g., mainland China), you must set up a proxy.

    • In the main interface, find the "Network Proxy Address" field.
    • Enter your proxy address in the format http://127.0.0.1:10808 (replace the port with your proxy client's actual port).
    • If you don't have a proxy, leave this field empty and proceed to step 2.
  2. Switch to an Alternative Translation Service: Since Google Translate requires a proxy, use a different, accessible translation channel.

    • In the "Translation Channel" dropdown, select a free alternative like "Microsoft (Free)" or "DeepLX (Free)" (requires local deployment).
    • For higher quality, consider using an AI translation service like DeepSeek, OpenAI ChatGPT, or Gemini, which will also require an API key and potentially a proxy.

Important Note: The error log shows a very long file path (Z:/16-9/baixando/ja usado/...). While not the direct cause of this translation error, extremely long paths can cause other issues with ffmpeg. It is recommended to use shorter folder and file names.

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