#2142 tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:Fail

240e:36a* Posted at: 23 hours ago 👁14

Service has not been opened, please open service at Tencent Cloud console:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, 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 19, in run
File "videotrans\translator\__init__.py", line 891, 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 61, in _item_task
File "tencentcloud\tmt\v20180321\tmt_client.py", line 163, in TextTranslate
File "tencentcloud\common\abstract_client.py", line 433, in call
File "tencentcloud\common\abstract_client.py", line 364, in _check_error
tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:FailedOperation.UserNotRegistered message:Service has not been opened, please open service at Tencent Cloud console requestId:ee6705e7-5939-43f0-9b57-efb828cca394


=
system:Windows-10-10.0.19045-SP0
version:v3.91
frozen:True
language:zh
root_dir:E:/money/win-pyvideotrans-v3.91_20251219_004054

1 Replies

这个错误表明您选择的腾讯翻译API服务未开通。错误信息 "Service has not been opened, please open service at Tencent Cloud console" 明确指出需要在腾讯云控制台开通服务。

请按以下步骤解决:

  1. 登录腾讯云控制台:访问 腾讯云官网 并登录您的账号。
  2. 开通机器翻译服务

    • 在控制台搜索或找到 “机器翻译”“TMT” 产品。
    • 进入产品页面,点击 “立即开通”“免费试用”
    • 按照指引完成实名认证(如果未完成)和服务开通流程。
  3. 获取API密钥

    • 开通服务后,在控制台进入 “访问管理” -> “API密钥管理”
    • 获取您的 SecretIdSecretKey
  4. 在pyVideoTrans中配置

    • 回到pyVideoTrans软件,点击菜单栏的 “设置” -> “翻译设置”
    • 在“腾讯翻译”一栏,填入刚才获取的 SecretIdSecretKey
    • 保存设置并重试翻译。

重要提示:腾讯翻译API是付费服务,开通后请注意查看其计费说明,避免产生意外费用。如果您想使用免费翻译渠道,可以切换到 Google翻译(需配置网络代理)或 DeepLX 等选项。

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

Similar issues already exist

Trending Questions