#5570 :Traceback (most recent call last): File "urllib\request.py", line 1348, in do_open File "http\client.py", line 1283,

2001:19f0* 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_fun.py", line 51, 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:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 46, in run
File "videotrans\task\trans_create.py", line 319, in recogn
File "videotrans\recognition\__init__.py", line 191, in run
File "videotrans\recognition\_base.py", line 90, in run
File "videotrans\recognition\_whisper.py", line 36, in _exec
File "videotrans\recognition\_whisper.py", line 85, in _openai
File "videotrans\configure\base.py", line 272, 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_fun.py", line 51, 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:/GHIN/A-PLAN/MP1.mp4,
输出结果保存到文件夹: D:/GHIN/A-PLAN/F/MP1-mp4,
临时文件夹: D:/AI/tmp/16436/16842c4adf
未选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:openai-whisper(本地内置), model_name: tiny, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:WilliamMultilingual(Male/AU), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/AI

1 Replies

这是由于网络连接问题导致的。软件尝试从 HuggingFace 在线下载 openai-whisper 的 tiny 模型时,DNS 解析失败(getaddrinfo failed),无法连接到服务器。

解决方法(任选其一):

  1. 配置网络代理:在中国大陆访问 HuggingFace 需要科学上网。请在软件主界面第 5 行「网络代理」输入框内填写有效的代理地址,格式如 http://127.0.0.1:7890(以你的代理客户端实际端口为准),保存后重新启动任务。
  2. 手动下载模型文件

    • OpenAI Whisper 官方HuggingFace 镜像 下载 tiny.pt 文件。
    • 将该文件重命名为 tiny.pt,放入软件根目录下的 models/ 文件夹内(与 sp.exe 同级)。
    • 重新运行任务,软件将直接使用本地模型,不再尝试在线下载。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource