#653 tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:Clie

*114.146* Posted at: 6 hours ago 👁8

HTTPSConnectionPool(host='tmt.tencentcloudapi.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))):Traceback (most recent call last):

File "videotrans\translator\_base.py", line 79, in run

File "videotrans\translator\_base.py", line 97, 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\util\TestSrtTrans.py", line 17, in run

File "videotrans\translator\__init__.py", line 808, in run

File "videotrans\translator\_base.py", line 81, in run

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\translator\_tencent.py", line 63, in _item_task

File "tencentcloud\tmt\v20180321\tmt_client.py", line 163, in TextTranslate

File "tencentcloud\common\abstract_client.py", line 431, in call

File "tencentcloud\common\abstract_client.py", line 428, in _call

File "tencentcloud\common\http\request.py", line 118, in send_request

tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:ClientNetworkError message:HTTPSConnectionPool(host='tmt.tencentcloudapi.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))) requestId:None

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于网络连接问题导致 pyVideoTrans 无法连接到腾讯翻译API服务。具体表现为软件在尝试通过代理服务器访问 tmt.tencentcloudapi.com 时,SSL握手失败。

主要原因和解决方案:

1. 代理服务器问题(最常见原因): 您的计算机可能设置了系统代理或网络环境(如公司网络)强制使用代理,但该代理无法正确处理与腾讯云API的SSL连接。

  • 解决方案A(临时关闭代理): 如果您使用了代理软件(如Clash、V2Ray等),请暂时关闭它们,然后重试翻译任务。
  • 解决方案B(配置环境变量): 如果您必须使用代理,可以尝试配置环境变量让请求直接走代理,而不是让系统自动检测。请在运行 pyVideoTrans 之前,在命令提示符或PowerShell中设置以下环境变量(将 http://127.0.0.1:10809 替换为您自己的代理地址和端口):
        set HTTP_PROXY=http://127.0.0.1:10809
        set HTTPS_PROXY=http://127.0.0.1:10809

然后从同一个命令提示符窗口启动 pyVideoTrans

2. 网络环境限制: 您所处的网络(如公司、学校网络)可能阻止了对特定API端口的访问。

  • 解决方案: 尝试切换网络,例如使用手机热点,看问题是否解决。

3. 更换翻译渠道: 如果以上方法均无效,最直接的解决方法是暂时使用其他翻译服务。

  • 解决方案:pyVideoTrans 的翻译设置中,将“翻译渠道”从“腾讯翻译”切换到其他可用的选项,例如“Google翻译”或“百度翻译”。这些服务可能对您的网络环境更友好。

总结步骤:

1. 首先尝试关闭任何正在运行的代理软件。

2. 如果无效,尝试切换网络(如使用手机热点)。

3. 如果问题依旧,最稳妥的方法是直接在软件设置中更换一个翻译渠道。

如果问题持续存在,请确保您是从官方渠道(pyvideotrans.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.

Donate: https://ko-fi.com/jianchang512

Trending Questions