翻译字幕阶段出错 [Gemini AI] 网络连接失败
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 154, in _connect
File "httpcore\_backends\sync.py", line 152, in start_tls
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\trans_create.py",
......
__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 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 104, in _item_task
File "google\genai\models.py", line 5407, in generate_content_stream
File "google\genai\models.py", line 4101, in _generate_content_stream
File "google\genai\_api_client.py", line 1405, in request_streamed
File "google\genai\_api_client.py", line 1224, in _request
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 420, in exc_check
File "tenacity\__init__.py", line 187, in reraise
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "google\genai\_api_client.py", line 1188, in _request_once
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)
TaskCfgVTT(is_cuda=True, uuid='b59bb12d0f', cache_folder='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/15680/b59bb12d0f', target_dir='E:/编程/langchain课程/_video_out/17-3. The Evolution of LangChain ReAct Agents-mp4', source_language='英语', source_language_code='en', source_sub='E:/编程/langchain课程/_video_out/17-3. The Evolution of LangChain ReAct Agents-mp4/en.srt', source_wav='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/15680/b59bb12d0f/en.wav', source_wav_output='E:/编程/langchain课程/_video_out/17-3. The Evolution of LangChain ReAct Agents-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='E:/编程/langchain课程/_video_out/17-3. The Evolution of LangChain ReAct Agents-mp4/zh-cn.srt', target_wav='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/15680/b59bb12d0f/target.wav', target_wav_output='E:/编程/langchain课程/_video_out/17-3. The Evolution of LangChain ReAct Agents-mp4/zh-cn.m4a', name='E:/编程/langchain课程/Udemy - LangChain- Develop AI Agents with LangChain & LangGraph part1/17-3. The Evolution of LangChain ReAct Agents.mp4', noextname='17-3. The Evolution of LangChain ReAct Agents', basename='17-3. The Evolution of LangChain ReAct Agents.mp4', ext='mp4', dirname='E:/编程/langchain课程/Udemy - LangChain- Develop AI Agents with LangChain & LangGraph part1', shound_del_name=None, translate_type=5, tts_type=10, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='aozi.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/编程/langchain课程/_video_out/17-3. The Evolution of LangChain ReAct Agents-mp4/17-3. The Evolution of LangChain ReAct Agents.mp4', novoice_mp4='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/15680/b59bb12d0f/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=4, only_out_mp4=False, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)
=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/project/Videotrans/win-pyvideotrans-v3.98-327