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

119.180* Posted at: 4 days ago 👁35

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:1bd9b97d-93fd-4df6-8a63-8a613d09d3dd


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.82

1 Replies

这个错误是因为您的腾讯云机器翻译服务未开通。错误信息 "Service has not been opened, please open service at Tencent Cloud console" 明确指出了问题所在。

请按以下步骤解决:

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

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

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

    • 在 pyVideoTrans 菜单栏选择 翻译设置
    • 在"翻译渠道"中选择"腾讯翻译"
    • 填入您的 SecretId 和 SecretKey
    • 点击"保存"并重新测试

如果您不确定如何开通腾讯云服务,建议参考腾讯云官方文档或联系腾讯云客服获取帮助。

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