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

*440:14* Posted at: 12 hours ago 👁6

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 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 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:626aeedc-396f-4d69-a699-1d01d1d350c3

=====

Windows-10-10.0.19045-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个错误是因为腾讯翻译服务未在腾讯云控制台开通导致的。错误信息明确显示:"Service has not been opened, please open service at Tencent Cloud console"。

问题分析:

  • 您正在使用腾讯翻译作为字幕翻译渠道
  • 腾讯翻译需要先在腾讯云控制台开通机器翻译服务并获取API密钥
  • 即使您已经填写了SecretId和SecretKey,但如果服务未开通,仍然会报此错误

解决方案:

1. 登录腾讯云控制台

  • 访问 https://console.cloud.tencent.com/
  • 使用您的腾讯云账号登录

2. 开通机器翻译服务

  • 在控制台搜索"机器翻译"或"TMT"
  • 进入"机器翻译"服务页面
  • 点击"立即开通"或"开通服务"
  • 按照提示完成服务开通流程

3. 检查API密钥配置

  • 在软件菜单中点击"翻译设置"
  • 选择"腾讯翻译"
  • 确保已正确填写SecretId和SecretKey
  • 这些密钥需要在腾讯云控制台的"访问管理"中创建

4. 验证服务状态

  • 开通后,等待几分钟让服务生效
  • 可以在腾讯云控制台查看服务状态是否为"已开通"

注意事项:

  • 腾讯翻译仅限中国IP使用,不可使用代理访问
  • 开通服务后可能有免费额度,超出后会按量计费
  • 如果问题仍然存在,请检查网络连接是否正常

完成以上步骤后,重新尝试翻译任务即可。

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