#1596 TaskCfg(cache_folder='D:/Setup/pyvideotrans/tmp18000/7efb14bc50', target_dir='D:/Downloads/_video_out/3', remove_noise=F

171.242* Posted at: 16 hours ago 👁17

Trans Error:[Gemini AI] 1 validation error for ThinkingConfig
thinking_level
Extra inputs are not permitted [type=extra_forbidden, input_value='HIGH', input_type=str]

For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden:

Traceback (most recent call last):
File "videotrans\translator\_base.py", line 77, in run
File "videotrans\translator\_base.py", line 137, in _run_srt
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 184, in run
File "videotrans\task\trans_create.py", line 417, in trans
File "videotrans\translator\__init__.py", line 928, in run
File "videotrans\translator\_base.py", line 80, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 123, in _item_task
File "pydantic\main.py", line 214, in init
pydantic_core._pydantic_core.ValidationError: 1 validation error for ThinkingConfig
thinking_level
Extra inputs are not permitted [type=extra_forbidden, input_value='HIGH', input_type=str]

For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden

TaskCfg(cache_folder='D:/Setup/pyvideotrans/tmp18000/7efb14bc50', target_dir='D:/Downloads/_video_out/3', remove_noise=False, is_separate=False, detect_language='zh-tw', subtitle_language=None, source_language='Traditional Chinese', target_language='Vietnamese', source_language_code='zh-tw', target_language_code='vi', source_sub='D:/Downloads/_video_out/3/zh-tw.srt', target_sub='D:/Downloads/_video_out/3/vi.srt', source_wav='D:/Setup/pyvideotrans/tmp18000/7efb14bc50/zh-tw.wav', source_wav_output='D:/Downloads/_video_out/3/zh-tw.m4a', target_wav='D:/Setup/pyvideotrans/tmp18000/7efb14bc50/target.wav', target_wav_output='D:/Downloads/_video_out/3/vi.m4a', subtitles='', novoice_mp4='D:/Setup/pyvideotrans/tmp18000/7efb14bc50/novoice.mp4', noextname='3', shibie_audio=None, targetdir_mp4='D:/Downloads/_video_out/3/3.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=9, recogn_type=4, model_name='paraformer-zh', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='D:/Downloads/3.ts', basename='3.ts', ext='ts', dirname='D:/Downloads', shound_del_name=None, uuid='7efb14bc50', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0)


=
system:Windows-10-10.0.26200-SP0
version:v3.85
frozen:True
language:en
root_dir:D:/Setup/pyvideotrans

2 Replies

This error indicates a compatibility issue with the Gemini AI translation API. The error "Extra inputs are not permitted" for thinking_level suggests that the version of the google-generativeai library being used is incompatible with the parameters pyVideoTrans is sending.

Solution:

  1. Update the google-generativeai library:

    • Open a command prompt (CMD) or terminal.
    • Navigate to your pyVideoTrans directory (e.g., cd D:\Setup\pyvideotrans).
    • Run the following command to upgrade the library:

      pip install --upgrade google-generativeai
    • If you are using the pre-packaged Windows version, you might need to run this command from within the software's Python environment. Try running the command from the directory where sp.exe is located.
  2. If the error persists after updating:

    • This is likely a temporary API incompatibility. As a workaround, switch to a different translation engine (e.g., Google, DeepSeek, or OpenAI) in the main interface's translation settings until the Gemini integration is updated.
  3. Check for Software Updates:

    • Ensure you are using the latest version of pyVideoTrans from the official website, as this issue might have been fixed in a newer release.

If the problem continues after trying these steps, please provide the latest log file from the videotrans/logs/ directory for further analysis.

拉取3.86源码

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