#8382 翻译字幕阶段出错 [Google(免费)] Proxy configuration issue, check settings or disable proxyTraceback (most recent call last):

60.248**2 Posted at: 2 hours ago

翻译字幕阶段出错 [Google(免费)] Proxy configuration issue, check settings or disable proxy
Traceback (most recent call last):

File "urllib3\connection.py", line 198, in _new_conn

File "urllib3\util\connection.py", line 60, in create_connection

File "socket.py", line 967, in getaddrinfo

socket.gaierror: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):

File "urllib3\connectionpool.py", line 773, in urlopen

File "urllib3\connectionpool.py", line 1042, in _prepare_proxy

File "urllib3\connection.py", line 753, in connect

File "urllib3\connection.py", line 205, in _new_conn

urllib3.exceptions.NameResolutionError: : Failed to resolve 'socks=127.0.0.1' ([Errno 11001] getaddrinfo failed)

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

urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NameResolutionError(": Failed to resolve
......
e "videotrans\translator\_base.py", line 79, in run

File "videotrans\translator\_base.py", line 117, in _run_text

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 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\_microsoft.py", line 49, in _item_task

File "requests\api.py", line 115, in post

File "requests\api.py", line 59, in request

File "requests\sessions.py", line 589, in request

File "requests\sessions.py", line 703, in send

File "requests\adapters.py", line 671, in send

requests.exceptions.ProxyError: HTTPSConnectionPool(host='edge.microsoft.com', port=443): Max retries exceeded with url: /translate/translatetext?from=&to=zh-Hans&isEnterpriseClient=false (Caused by ProxyError('Unable to connect to proxy', NameResolutionError(": Failed to resolve 'socks=127.0.0.1' ([Errno 11001] getaddrinfo failed)")))
trk=[TransCreate]: uuid='98627e7baf', proxy_str='socks=127.0.0.1:40008', cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: C:/1/v/2/5_6260472526833458276.mp4,
输出结果保存到文件夹: C:/1/v/2/_video_out/5_6260472526833458276-mp4,
临时文件夹: C:/1/v/2/win-pyvideotrans-v4.16/tmp/22004/98627e7baf
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 日语,
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址: socks=127.0.0.1:40008, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=False, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:C:/1/v/2/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 2 hours ago

代理地址格式填写错误。日志显示 proxy_str='socks=127.0.0.1:40008',其中 socks= 是无效协议前缀,导致软件无法解析代理主机名(Failed to resolve 'socks=127.0.0.1'),进而使 Google 翻译请求失败并自动切换到微软翻译,微软翻译同样受此错误代理影响而报错。

解决方法:

  1. 在主界面「对齐控制(Alignment)」行右侧的网络代理文本框中,将原有内容 socks=127.0.0.1:40008 清空。
  2. 按正确格式重新填写(二选一):

    • socks5://127.0.0.1:40008
    • 或 http://127.0.0.1:40008(需与你本地代理软件提供的 HTTP 端口一致)
  3. 保存后,勾选「清理已生成」重新执行。

补充说明:

  • 请确认本地代理软件已运行,且端口 40008 正确(该端口需与代理软件实际监听的端口对应,不可随意填写)。
  • Google 翻译在国内必须通过代理才能使用;若代理不可用,建议改用 DeepSeek 等 AI 翻译渠道(国内直连、无需代理、翻译质量更好)。
  • 若不想使用代理,请将代理文本框完全清空。

请查阅相关文档:

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