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

2409:8a1a* Posted at: 9 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 52, 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
......
ile "videotrans\recognition\_whisper.py", line 88, 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 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 52, 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]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/不穿胸罩的邻家主妇.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/win-pyvideotrans-v4.07/不穿胸罩的邻家主妇-mp4,
临时文件夹: C:/Users/Administrator/Desktop/win-pyvideotrans-v4.07/tmp/28352/c50dda1dba
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:openai-whisper(本地内置), model_name: large-v3, 发音语言: 日语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:http://localhost:15236


=
system:Windows-10-10.0.26100-SP0
version:v4.07
frozen:True
language:zh
root_dir:C:/Users/Administrator/Desktop/win-pyvideotrans-v4.07

1 Replies

这是由于配置的代理服务器 http://localhost:15236 无法连接,导致 openai-whisper 下载模型文件被拒绝。请按以下步骤排查:

  1. 清空代理:在主界面「网络代理」文本框删除所有内容(留空),保存后重试。如果无需代理访问国外资源,直接使用直连即可。
  2. 检查代理服务:如果确实需要代理,请确保 localhost:15236 对应的代理软件(如 Clash/V2Ray)已启动且运行正常。
  3. 手动下载模型:如果网络无法直接下载,请手动下载 large-v3 模型文件放到 models/ 目录:

如果以上步骤后仍然报错,请查看 logs/ 目录的最新日志并复制底部约30行报错信息。

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 via ko-fi.com

Dondate via PayPal

Related resource