#8592 Connection timeout, please check network stability:Traceback (most recent call last): File

2408**c8c6 Posted at: 1 hour ago

Connection timeout, please check network stability: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 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectTimeout: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "google\genai\_gaos\basesdk.py", line 269, in do

http

......
"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.ConnectTimeout: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 75, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 50, in _item_task
File "google\genai\_gaos\google_genai.py", line 278, in create

response = wrap_sdk_call(

File "google\genai\_gaos\lib\compat_errors.py", line 368, in wrap_sdk_call

return fn(*args, **kwargs)

File "google\genai\_gaos\interactions.py", line 714, in create

http_res = self.do_request(

File "google\genai\_gaos\basesdk.py", line 291, in do_request

http_res = utils.retry(do, utils.Retries(retry_config[0], retry_config[1]))

File "google\genai\_gaos\utils\retries.py", line 264, in retry

return retry_with_attempt_count_backoff(

File "google\genai\_gaos\utils\retries.py", line 399, in retry_with_attempt_count_backoff

raise exception.inner

File "google\genai\_gaos\utils\retries.py", line 231, in do_request

res = func(attempt)

File "google\genai\_gaos\basesdk.py", line 274, in do

raise e

google.genai._gaos.lib.compat_errors.APITimeoutError: Request timed out. This is a client-side timeout. You can increase the timeout by setting the timeout argument on your request or in the client http options.


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/Program Files (x86)/pyvideotrans4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是 软件无法连接 Google Gemini 服务器。[WinError 10060] 表示 TCP 连接超时(连接被墙或无响应),Gemini API 在国内无法直连,必须走代理。

解决方案(任选其一):

  1. 配置代理(若想继续用 Gemini):

    • 在主界面「字幕、配音、画面同步」行右侧的网络代理文本框填写代理地址,格式:http://127.0.0.1:7890(端口按你实际代理软件修改)。
    • 确保代理软件正在运行、端口正确、并开启全局或规则模式可访问 Google。
    • 填写后重试,切勿留空或乱填。
  2. 改用国内可直连的 AI 翻译渠道(推荐,更稳定):

    • 在「翻译渠道」下拉里把 Gemini 换成 DeepSeek(物美价廉,效果更佳)。
    • 到 菜单 → 翻译设置 → DeepSeek 填写 API Key(platform.deepseek.com 注册充值,可自定义充值 1 元)。
    • 或使用免费的 Microsoft(免费) 渠道(无需代理)。

另外提醒:你的软件安装在 D:/Program Files (x86)/pyvideotrans4.14,这属于系统受限目录,可能导致生成文件或临时文件写入失败,建议迁移到简短英文目录(如 D:/pyvideotrans)。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource