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

240e:353* Posted at: 22 hours ago 👁8

Service has not been opened, please open service at Tencent Cloud console:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 81, in run
File "videotrans\translator\_base.py", line 99, 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 863, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_tencent.py", line 60, 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:920f759d-f53e-47d0-9b07-c8ee558ad41a


=
Windows-10-10.0.26100-SP0
version:v3.81
frozen:True
language:zh

1 Replies

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

请按以下步骤解决:

  1. 登录腾讯云控制台:访问 https://console.cloud.tencent.com/
  2. 开通机器翻译服务

    • 在控制台搜索 "机器翻译" 或 "TMT"
    • 进入机器翻译服务页面
    • 点击"立即开通"或"免费试用"(如果有)
    • 完成实名认证和开通流程
  3. 获取API密钥

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

    • 在 pyVideoTrans 菜单栏选择 翻译设置
    • 将"翻译渠道"切换为"腾讯翻译"
    • 填入您获取的 SecretIdSecretKey

如果您暂时不想使用腾讯云翻译,可以切换到其他翻译渠道,如 Google 翻译或 Microsoft 翻译,这些通常无需额外开通服务。

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