#6915 <urlopen error [Errno 11001] getaddrinfo failed>:Traceback (most recent call last): File

188.253.**1 Posted at: 2 hours ago

:Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 836, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 53, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line
......
otrans\recognition\_base.py", line 98, in run
File "videotrans\recognition\_whisper.py", line 39, in _exec
File "videotrans\recognition\_whisper.py", line 90, in _openai
File "videotrans\configure\base.py", line 270, in _new_process
videotrans.configure.excepts.VideoTransError: :Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 836, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 53, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError:

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/视频/flow.mp4,
输出结果保存到文件夹: D:/flow-mp4,
临时文件夹: D:/Flash/win-pyvideotrans-v4.11/tmp/7496/9912d1915e
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), tiny, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
已选 仅输出mp4
代理地址:http=127.0.0.1:7897;https=127.0.0.1:7897;socks=127.0.0.1:7897


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/Flash/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 2 hours ago

此报错 socket.gaierror: [Errno 11001] getaddrinfo failed 的底层原因是 DNS 解析失败,软件无法解析模型下载服务器的域名。从日志看,你配置了一个格式错误的代理地址:

http=127.0.0.1:7897;https=127.0.0.1:7897;socks=127.0.0.1:7897

这种格式并非软件要求的正确格式,会导致所有网络请求失败。

解决方案(按顺序操作)

  1. 清空或修正代理地址
    主界面 对齐控制 行右侧有一个“网络代理”输入框。将其内容全部清空(如果不需要代理),或改为单一正确的格式:

    http://127.0.0.1:7897

    注意必须带 http:// 前缀,且不要写多个协议串连。保存后重试。

  2. 确认代理软件已运行
    如果你确实需要使用代理,请确认本机的代理软件(如 Clash、V2Ray)正在运行,且端口 7897 正确。若端口不同,请改为实际端口。
  3. 如果仍无法下载模型,改为手动下载
    本次使用的是 openai-whisper(内置) 渠道的 tiny 模型,软件会从国外地址自动下载。若网络不通,可手动下载模型文件:

    • 下载地址:
      https://openaipublic.azureedge.net/main/whisper/models/65147644a518d12f04e32d6f3b26facc3f8dd46e5390956a9424a650c0ce22b9/tiny.pt
    • 将下载的 tiny.pt 文件直接放入软件根目录下的 models/ 文件夹内,然后重新执行。
  4. 可直接换用 faster-whisper(内置) 渠道
    该渠道默认优先从国内镜像下载模型,网络兼容性更好。更推荐使用 large-v3-turbo 模型(速度与质量均衡)。

请查阅相关文档:

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