#1565 urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

112.224* Posted at: 18 hours ago 👁11

Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1282, in request
File "http\client.py", line 1328, in _send_request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "http\client.py", line 1447, in connect
File "http\client.py", line 941, in connect
File "socket.py", line 824, in create_connection
File "socket.py", line 955, 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\_overall.py", line 44, in run
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:


=
system:Windows-10-10.0.19045-SP0
version:v3.85
frozen:True
language:zh
root_dir:D:/videotrans/pyvideotrans385

1 Replies

这个错误是由于网络连接问题,导致无法从 HuggingFace 下载 Whisper 模型文件。请按以下步骤解决:

  1. 手动下载模型

    • 访问 HuggingFace 模型库:https://huggingface.co/guillaumekln/faster-whisper-{模型名}/tree/main
    • 下载您需要的模型文件(如 large-v3
    • 将下载的模型文件夹放置到:D:/videotrans/pyvideotrans385/models/faster-whisper/
  2. 配置模型路径

    • 在软件设置中,将模型路径指向您手动下载的模型文件夹
  3. 网络代理设置

    • 如果您使用代理,请在软件的网络代理设置中填写正确的代理地址
  4. 备选方案

    • 暂时使用其他语音识别引擎,如阿里FunASR(中文效果更好)
    • 或者使用更小的模型(如 smallmedium),下载量更小

手动下载模型是最可靠的解决方案,可以完全避免网络连接问题。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions