#5263 TaskCfgVTT(uuid='1eb6acdb1d', name='E:/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School

191.6* Posted at: 3 days ago

'tuple' object has no attribute 'get'[Deepgram.com, Microsoft (Free), Edge-TTS(Free)]
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 112, in run
File "videotrans\task\trans_create.py", line 704, in align
File "videotrans\task\_rate.py", line 380, in run
File "videotrans\task\_rate.py", line 589, in _video_speeddown
File "videotrans\task\_rate.py", line 589, in
AttributeError: 'tuple' object has no attribute 'get'
TaskCfgVTT(uuid='1eb6acdb1d', name='E:/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School.mp4', dirname='E:/', noextname='1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School', basename='1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School.mp4', ext='mp4', target_dir='E:/_video_out/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School-mp4', cache_folder='E:/win-pyvideotrans-v4.02-0612/tmp/400/1eb6acdb1d', is_cuda=False, source_language='English', source_language_code='en', source_sub='E:/_video_out/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School-mp4/en.srt', source_wav='E:/win-pyvideotrans-v4.02-0612/tmp/400/1eb6acdb1d/en.wav', source_wav_output='E:/_video_out/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School-mp4/en.m4a', target_language='Portuguese', target_language_code='pt', target_sub='E:/_video_out/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School-mp4/pt.srt', target_wav='E:/win-pyvideotrans-v4.02-0612/tmp/400/1eb6acdb1d/target.wav', target_wav_output='E:/_video_out/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School-mp4/pt.m4a', translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+1%', 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-2', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/_video_out/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School-mp4/1 Girl Vs 30 Boys! But 2 Of Them Fight For Her Love In Front Of The Entire School.mp4', novoice_mp4='E:/win-pyvideotrans-v4.02-0612/tmp/400/1eb6acdb1d/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='E:/win-pyvideotrans-v4.02-0612/tmp/400/1eb6acdb1d/vocal.wav', clear_cache=False, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.22631-SP0
version:v4.02
frozen:True
language:en
root_dir:E:/win-pyvideotrans-v4.02-0612

2 Replies

This error is a known bug in v4.02 related to the video slowdown alignment engine.

  • The code at _rate.py line 589 tries to call .get() on a tuple (likely a subtitle item that wasn't properly parsed), causing the AttributeError.
  • This usually happens when video slowdown (video_autorate) is enabled and the subtitle timing data is malformed after the dubbing process.

Quick fix:

  1. Disable video slowdown – Go to the main interface → Synchronization & Subtitles row → uncheck "Video slow motion" (leave only "Audio speedup" checked). This avoids the buggy code path entirely.
  2. Update to latest version – The fix was included in a later patch. Download the latest full package from pyvideotrans.com/downpackage or apply the sp.exe update.
  3. Rename your video file – The filename contains spaces and special characters (1 Girl Vs 30 Boys! But 2 Of Them...). Although this is not the direct cause, it can trigger other FFmpeg issues. Rename to something like test.mp4 before retrying.

If you still see the error after updating and renaming:

  • Provide the latest log from logs/ folder (last 30 lines) so we can check for any remaining issues.

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

Related resource