#5873 连接超时,请检查网络连接是否稳定Traceback (most recent call last):

113.201* Posted at: 1 hour ago

连接超时,请检查网络连接是否稳定
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 101, in _run_text
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 67, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 63, in run
File "videotrans\translator\_base.py", line 74, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 36, in _item_task
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 690, in send
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Read timed out. (read timeout=300)

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/UCEsri/videoprocess/Part 2.mp4,
输出结果保存到文件夹: D:/UCEsri/videoprocess/_video_out/Part 2-mp4,
临时文件夹: D:/绿色程序/VideoSP/tmp/25412/32a6a88f64
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.05
frozen:True
language:zh
root_dir:D:/绿色程序/VideoSP

1 Replies

这是网络连接问题导致翻译渠道超时失败。你的日志显示翻译渠道选择了“Google(免费)”,但Google翻译在中国大陆无法直接访问,软件自动回退到Microsoft翻译,而Microsoft翻译也因网络问题读取超时(Read timeout)。

解决方法:

  1. 配置网络代理:如果你有科学上网工具,在软件主界面“网络代理”处填入代理地址(格式如 http://127.0.0.1:7890socks5://127.0.0.1:7890)。
  2. 改用国内翻译渠道:在“翻译渠道”下拉框中选择百度翻译、腾讯翻译、阿里机器翻译或DeepSeek等无需代理的渠道,并提前在菜单 - 翻译设置中填写对应的API密钥。
  3. 检查网络连接:如果已使用代理,请确认代理服务器可用且允许连接api-edge.cognitive.microsofttranslator.com

配置代理后,重新执行任务即可。

请查阅相关文档:

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