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

212.114**9 Posted at: 7 hours ago

Proxy configuration issue, check settings or disable proxy
Traceback (most recent call last):
File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\connection.py", line 198, in _new_conn

sock = connection.create_connection(

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\util\connection.py", line 85, in create_connection

raise err

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\util\connection.py", line 73, in create_connection

sock.connect(sa)

OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

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

Traceback (most recent call last):
File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\connectionpool.py", line 773, in urlopen

self._prepare_proxy(conn)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\connectionpool.py", line 1042, in _prepare_proxy

conn.connect()

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\connection.py", line 753, in connect

self.sock = sock = self._new_conn()

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\urllib3\connection.py", line 213, in _new_conn

raise NewConnectionError(

urllib3.exceptions.NewConnec
......
e 117, in _run_text

result = cleartext( self._item_task( ("\n".join(it)).strip() ) )

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\tenacity\__init__.py", line 338, in wrapped_f

return copy(f, *args, **kw)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\tenacity\__init__.py", line 477, in call

do = self.iter(retry_state=retry_state)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\tenacity\__init__.py", line 378, in iter

result = action(retry_state)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\tenacity\__init__.py", line 400, in

self._add_action_func(lambda rs: rs.outcome.result())

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.runtime\python\lib\concurrent\futures\_base.py", line 451, in result

return self.__get_result()

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.runtime\python\lib\concurrent\futures\_base.py", line 403, in __get_result

raise self._exception

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\tenacity\__init__.py", line 480, in call

result = fn(*args, **kwargs)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\translator\_microsoft.py", line 49, in _item_task

response = requests.post(url, json=texts, headers=headers, verify=False, timeout=300)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\requests\api.py", line 115, in post

return request("post", url, data=data, json=json, **kwargs)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\requests\api.py", line 59, in request

return session.request(method=method, url=url, **kwargs)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\requests\sessions.py", line 589, in request

resp = self.send(prep, **send_kwargs)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\requests\sessions.py", line 703, in send

r = adapter.send(request, **kwargs)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.venv\Lib\site-packages\requests\adapters.py", line 671, in send

raise ProxyError(e, request=request)

requests.exceptions.ProxyError: HTTPSConnectionPool(host='edge.microsoft.com', port=443): Max retries exceeded with url: /translate/translatetext?from=&to=de&isEnterpriseClient=false (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。')))

trk=[TransCreate]: uuid='a40f8ca307', proxy_str='http://127.0.0.1:10809', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/1.电影/261125/担保/世间的牵绊有很多种,不沾染杂质的亲情总能让人为之动容 丨韩国电影《担保》#影视解说 #一剪到底.mp4,
输出结果保存到文件夹: D:/1.电影/261125/担保/AI/matched_source-mp4,
临时文件夹: D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse/tmp/29060/a40f8ca307
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:德语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Conrad(Male/DE), 配音语言:德语, 未选 二次语音识别
音量:+0%, 语速:+25%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:10809, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/1.电影/261125/担保/世间的牵绊有很多种,不沾染杂质的亲情总能让人为之动容 丨韩国电影《担保》#影视解说 #一剪到底.mp4,
输出结果保存到文件夹: D:/1.电影/261125/担保/AI/matched_source-mp4,
临时文件夹: D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse/tmp/29060/a40f8ca307
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:德语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Conrad(Male/DE), 配音语言:德语, 未选 二次语音识别
音量:+0%, 语速:+25%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:10809
video_duration_ms=1021270


=
system:Windows-10-10.0.19045-SP0
version:v4.15
frozen:False
language:zh_CN
root_dir:D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

#1 DeepSeek reply at 7 hours ago

这是网络代理不可用导致的问题,与翻译渠道本身无关。

原因分析:日志中 proxy_str='http://127.0.0.1:10809',所有请求都被强制走该代理,但连接本地 10809 端口时抛出 WinError 10048,说明该端口上没有正常工作的代理服务:可能是代理软件(v2rayN / Clash 等)未启动、端口填错、代理进程异常且端口仍被占用,或 HTTP 端口实际是 10808 而你填了 10809。随后 Google 翻译因代理失败自动回退到微软翻译(_microsoft.py),同样因代理失败而中断。

解决方案(按顺序尝试):

  1. 确认代理服务真实可用:打开代理软件,查看其"HTTP 代理端口"是否为 10809(v2rayN 默认 HTTP 10809 / SOCKS 10808,Clash 常见 7890)。用 CMD 验证:

    curl -x http://127.0.0.1:10809 https://edge.microsoft.com -I

    返回 200/30x 才算通;报错就改端口或重启代理软件(端口被残留进程占用时,任务管理器结束旧代理进程再启动)。

  2. 若你不需要翻墙:直接清空主界面「网络代理」文本框(微软翻译、DeepSeek、智谱、字节火山、百度、腾讯等国内渠道均无需代理,软件自带免代理域名白名单),然后重新执行。此方式最省事,微软翻译即可满足中→德。
  3. 若必须使用 Google 翻译:则代理必须有效,填对端口后重试;国内不稳时建议直接改用 AI 翻译渠道(DeepSeek 等),翻译质量更好且无需代理,在 菜单--翻译设置--DeepSeek 填入密钥,把翻译渠道改为 DeepSeek。
  4. 修改完代理设置后重试时,勾选「清理已生成」,避免复用上次失败的状态。

另注意:本次配置为 发送完整字幕 + 嵌入硬字幕 + 视频慢速,硬字幕与视频慢速都会触发重新编码,与本次报错无关,但会显著延长处理时间。

请查阅相关文档:

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