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

113.109* Posted at: 4 hours ago 👁12

Service has not been opened, please open service at Tencent Cloud console:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 95, 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 889, in run
File "videotrans\translator\_base.py", line 80, 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:efa07ef0-d381-4f22-a8e2-2e5a8ea88bb8


=
system:Windows-10-10.0.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/videotrans/win-pyvideotrans-v3.86

1 Replies

这是由于腾讯翻译API服务未开通或密钥配置错误导致的。

解决方案:

  1. 开通腾讯翻译服务:访问腾讯云控制台,搜索“机器翻译”,开通“文本翻译”服务。
  2. 获取API密钥:在腾讯云控制台“访问管理”->“API密钥管理”页面,获取你的 SecretIdSecretKey
  3. 在软件中配置:在pyVideoTrans软件中,点击顶部菜单栏的“翻译设置”,找到“腾讯翻译”设置面板,将获取到的 SecretIdSecretKey 正确填写并保存。

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

请查阅相关文档:

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.

Related resource

Similar issues already exist