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

36.230* Posted at: 2 days ago 👁18

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 1454, in connect
File "ssl.py", line 512, in wrap_socket
File "ssl.py", line 1070, in _create
File "ssl.py", line 1341, in do_handshake
FileNotFoundError: [Errno 2] No such file or directory

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.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.86

1 Replies

这个错误表明软件在尝试从网络下载 Whisper 语音识别模型时,因系统缺少 SSL 证书文件而失败。这是 Windows 系统的一个常见问题。

核心解决方法:手动下载并放置模型文件。

请按以下步骤操作:

  1. 手动下载模型

    • 访问 Hugging Face 模型库:https://huggingface.co/guillaumekln/faster-whisper-{model_name}/tree/main
    • {model_name} 替换为您在主界面选择的模型,例如 large-v3
    • 完整链接示例:https://huggingface.co/guillaumekln/faster-whisper-large-v3/tree/main
    • 在页面中找到并下载 model.bin 文件。
  2. 放置模型文件

    • 在您的软件根目录 E:/win-pyvideotrans-v3.86 下,找到或创建文件夹:models/faster-whisper/
    • 将下载的 model.bin 文件放入 E:/win-pyvideotrans-v3.86/models/faster-whisper/{model_name}/ 目录下。
    • 例如,对于 large-v3 模型,最终路径应为:E:/win-pyvideotrans-v3.86/models/faster-whisper/large-v3/model.bin
  3. 重新运行

    • 完成放置后,重新启动软件并尝试处理视频。软件将直接使用本地模型,而无需联网下载。

替代方案(如果上述步骤复杂)

  • 在软件主界面的 语音识别 区域,尝试切换到其他不需要下载大模型的识别方式,例如 阿里FunASR(本地)

如果问题依旧,请提供 E:/win-pyvideotrans-v3.86/logs/ 目录下的最新日志文件。

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