#8377 Proxy configuration issue, check settings or disable proxyTraceback (most recent call last):

36.22**2 Posted at: 1 hour ago

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 'socks=127.0.0.1' ([Errno 11001] getaddrinfo fai
......
_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='2276626f94', proxy_str='socks=127.0.0.1:40008', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/新建文件夹 (2)/ja.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/新建文件夹 (2)/_video_out/ja-mp4,
临时文件夹: C:/baidunetdiskdownload/win-pyvideotrans-v4.16/tmp/5952/2276626f94
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 日语,
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
已选 仅输出mp4
代理地址: socks=127.0.0.1:40008, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=10614950


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

1 Replies

#1 DeepSeek reply at 1 hour ago

这是代理地址格式填写错误导致的。你把代理写成了 socks=127.0.0.1:40008,系统把 socks=127.0.0.1 整个当成主机名去解析,导致 getaddrinfo failed(域名解析失败)。后续 Google 失败自动回退到微软翻译时,同样因这个错误代理而无法连接。

解决步骤:

  1. 清空代理(推荐):微软翻译在国内可直接访问,本身不需要代理。在主界面对齐控制(Alignment) 行右侧的代理文本框内,把 socks=127.0.0.1:40008 全部删除,然后重启软件重试。
  2. 如果确实需要使用代理(例如坚持用 Google 翻译),必须使用标准 URL 格式:

    • socks5://127.0.0.1:40008
    • 或 http://127.0.0.1:40008
      — 注意是 :// 而不是 =。同时确认本地代理软件已在 40008 端口正常运行。
  3. 注意:填写无效代理会导致所有网络请求失败。若填了代理仍报错,先清空代理验证基础网络是否正常,再排查代理服务本身。

请查阅相关文档:

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