#7246 <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>:Traceback (most recent call last): File

2409**57e2 Posted at: 3 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 857, in create_connection
File "socket.py", line 845, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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\req
......
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 857, in create_connection
File "socket.py", line 845, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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]当前工作模式: 翻译视频 单视频模式
原始输入文件名: F:/Bashar - 1990-1999. Video/(1985-01-27)Bashar-Self created journey/Bashar - Self Created Journey.mp4,
输出结果保存到文件夹: C:/Users/fu/Desktop/_video_out/Bashar - Self Created Journey-mp4,
临时文件夹: C:/pyvideotrans/tmp/9940/a93de66fdf
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕(双) 目标语言在上双字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19044-SP0
version:v4.11
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

#1 DeepSeek reply at 3 hours ago

这是由于 openai-whisper 首次使用需下载 large-v3-turbo 模型文件,但下载时连接失败导致的。

报错 WinError 10061 目标计算机积极拒绝 说明你填写的代理 http://127.0.0.1:7897 当前未运行或端口错误,导致所有网络请求被本地代理端口拒绝连接。openai-whisper 的模型首次使用必须联网从 openaipublic.azureedge.net 下载,代理不可用即无法下载模型。

解决方案:

  1. 检查代理:确认你的代理软件(Clash/v2ray 等)已启动,且端口确实是 7897。若代理未开启或端口不对,请:

    • 启动代理软件并核对端口;或
    • 将主界面「对齐控制」行右侧的网络代理文本框清空后保存。
  2. 确保网络可访问模型下载源:openai-whisper 模型来自 openaipublic.azureedge.net,国内一般需科学上网才可直连。
  3. 若下载总是失败,改为手动下载模型

    • 下载 large-v3-turbo.pt
      https://openaipublic.azureedge.net/main/whisper/models/aff26ae408abcba5fbf8813c21e62b0941638c5f6eebfb145be0c9839262a19a/large-v3-turbo.pt
    • .pt 文件放入 软件目录/models 文件夹内(即 C:/pyvideotrans/models)。
    • 重新翻译,即可跳过下载直接加载本地模型。
  4. 替代方案:也可改用默认推荐的 faster-whisper(内置) 渠道,或先使用较小的 tiny / base 模型验证流程是否通畅。

请查阅相关文档:

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