#1321 ValueError: Unknown scheme for proxy URL URL('127.0.0.1:7890')

109.110* Posted at: 21 days ago 👁47

无效的值或参数:Unknown scheme for proxy URL URL('127.0.0.1:7890'):Traceback (most recent call last):
File "videotrans\translator\_base.py", line 80, in run
File "videotrans\translator\_base.py", line 143, 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\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 920, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 55, in _item_task
File "google\genai\client.py", line 219, in init
File "google\genai\client.py", line 265, in _get_api_client
File "google\genai\_api_client.py", line 459, in init
File "google\genai\_api_client.py", line 287, in init
File "httpx\_client.py", line 685, in init
File "httpx\_client.py", line 250, in _get_proxy_map
File "httpx\_config.py", line 214, in init
ValueError: Unknown scheme for proxy URL URL('127.0.0.1:7890')


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.82_20251019_125144

1 Replies

这个错误是由于代理设置格式不正确导致的。Gemini API 客户端无法识别您设置的代理地址格式。

请按以下步骤修正代理设置:

  1. 在软件菜单栏选择 翻译设置 -> 翻译渠道
  2. 找到您使用的 Gemini 翻译渠道,检查 网络代理 字段
  3. 将代理地址从 127.0.0.1:7890 修改为完整的 URL 格式:

    • 如果使用 HTTP 代理:http://127.0.0.1:7890
    • 如果使用 HTTPS 代理:https://127.0.0.1:7890
    • 如果使用 SOCKS5 代理:socks5://127.0.0.1:7890
  4. 保存设置后重新尝试翻译

如果您不确定代理类型,建议先尝试 http://127.0.0.1:7890 格式。如果问题仍然存在,请暂时禁用代理设置进行测试。

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