#8134 Connection refusedTraceback (most recent call last):

157.254**2 Posted at: 1 hour ago

Connection refused
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 101, in run
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 71, in run
File "videotrans\task\_stage_recogn.py", line 63, in recogn
File "videotrans\recognition\__init__.py", line 141, in run
File "videotrans\recognition\_base.py", line 110, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_google.py", line 58, in _exec
File "speech_recognition\__init__.py", line 712, in recognize_google
speech_recognition.exceptions.RequestError: recognition connection failed: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

trk=[TransCreate]: uuid='c5c231c82b', proxy_str='http://127.0.0.1:7890', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Downloads/1.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Downloads/_video_out/1-mp4,
临时文件夹: E:/BaiduNetdiskDownload/win-pyvideotrans-v4.16-1/tmp/34168/c5c231c82b
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), , 发音语言: 日语,
翻译渠道:DeepSeek,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕(双) 目标语言在下双字幕
代理地址: http://127.0.0.1:7890, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=526299


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/BaiduNetdiskDownload/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是网络代理连接失败导致的,具体原因是代理地址 http://127.0.0.1:7890 处的代理服务无法连接(WinError 10061:目标计算机积极拒绝),而你使用了需要科学上网的 Google识别API(免费) 渠道。

解决步骤:

  1. 确认你本机的 VPN/代理软件已启动,并且监听端口确实为 7890;
  2. 若代理端口不是 7890,请将主界面“代理地址”修改为实际端口,例如 http://127.0.0.1:10808;
  3. 不需要代理时可清空代理文本框并保存,避免无效代理导致所有网络请求失败;
  4. 若 Google 识别无法稳定使用,建议将语音识别渠道切换为 faster-whisper(内置),该渠道本地运行、无需代理。

请查阅相关文档:

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