#3849 TaskCfgVTT(is_cuda=True, uuid='b59bb12d0f', cache_folder='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/15680/b59

18.183* Posted at: 4 days ago 👁36

翻译字幕阶段出错 [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

1 Replies

这是由于网络连接问题导致 Gemini AI 翻译渠道无法访问其服务器。

解决方案:

  1. 配置网络代理:Gemini AI 服务在国内无法直接访问。请在软件主界面的“网络代理地址”文本框中,填入您的代理服务地址(格式如 http://127.0.0.1:10808,端口号需根据您的代理客户端设置填写)。
  2. 检查代理有效性:确保您的代理服务(VPN)已开启且运行正常,并能访问 https://generativelanguage.googleapis.com
  3. 切换翻译渠道:如果暂时无法解决代理问题,可以暂时切换到其他可用的翻译渠道,例如:

    • 免费渠道:微软翻译(无需代理)。
    • 其他AI渠道:DeepSeek、智谱AI等(部分国内渠道可能无需代理,但需自行配置API Key)。
    • 本地模型:M2M100(本地翻译,无需网络)。

操作步骤:

  1. 在主界面“翻译渠道”下拉列表中,暂时选择其他渠道(如“微软(免费)”)。
  2. 或者,正确配置网络代理地址后,再重新尝试使用 Gemini AI 渠道。

请查阅相关文档:

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