#5767 翻译字幕阶段出错 [微软(免费)] 代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容Traceback (most recent call last):

134.185* Posted at: 3 days ago

翻译字幕阶段出错 [微软(免费)] 代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容
Traceback (most recent call last):

File "urllib3\connectionpool.py", line 787, in urlopen

File "urllib3\connectionpool.py", line 534, in _make_request

File "urllib3\connection.py", line 565, in getresponse

File "http\client.py", line 1375, in getresponse

File "http\client.py", line 318, in begin

File "http\client.py", line 287, in _read_status

http.client.RemoteDisconnected: Remote end closed connection without response

The above exception was the direct cause of the following exception:

urllib3.exceptions.ProxyError: ('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "requests\adapters.py", line 644, in send

File "urllib3\connectionpool.py", line 841, in urlopen

File "urllib3\util\retry.py", line 519, in increment

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=zh-Hans&api-version=3.0&includeSentenceLength=true (Caused by ProxyError('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\translate_srt.py", line 47, in trans

File "videotrans\translator\_runner.py", line 63, in run

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 400, in

File "concurrent\futures\_base.py", line 451, in result

File "concurrent\futures\_base.py", line 403, in __get_result

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 671, in send

requests.exceptions.ProxyError: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=zh-Hans&api-version=3.0&includeSentenceLength=true (Caused by ProxyError('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response')))
cfg=TaskCfgSTS(uuid='9e989b0a5d', name='D:/Software/pyvideotrans/output/recogn/1-3.srt', dirname='D:/Software/pyvideotrans/output/recogn', noextname='1-3', basename='1-3.srt', ext='srt', target_dir='D:/Software/pyvideotrans/output/translate', cache_folder=None, is_cuda=False, source_language=None, source_language_code='ru', source_sub='D:/Software/pyvideotrans/output/recogn/1-3.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='zh-Hans', target_sub='D:/Software/pyvideotrans/output/translate/1-3.zh-Hans.srt', target_wav=None, target_wav_output=None, translate_type=1)


=
system:Windows-10-10.0.22631-SP0
version:v4.05
frozen:True
language:zh
root_dir:D:/Software/pyvideotrans

1 Replies

这是由于您在软件主界面的“网络代理”设置中填写了一个无法连接的代理地址,导致翻译请求被强制路由到该代理而失败。微软翻译本身无需代理即可直接访问。

解决办法:

  1. 打开软件主界面,找到第5行附近的“网络代理”输入框(一般在“同步对齐和字幕”下方)。
  2. 彻底清空该输入框,确保其中没有任何内容。
  3. 点击“开始”重新执行翻译任务。

请查阅相关文档:

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