#6096 :Traceback (most recent call last): File

2408:8471* Posted at: 14 hours ago

:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 98, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f

return copy(f, *args, **kw)

File "tenacity\__init__.py", line 477, in call

do = self.iter(retry_state=retry_state)

File "tenacity\__init__.py", line 378, in iter

result = action(retry_state)

File "tenacity\__init__.py", line 421, in exc_check

raise retry_exc from fut.exception()

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 955, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call

result = fn(*args, **kwargs)

File "videotrans\translator\_tencent.py", line 47, in _item_task
File "tencentcloud\tmt\v20180321\tmt_client.py", line 163, in TextTranslate

body = self.call("TextTranslate", params, headers=headers)

File "tencentcloud\common\abstract_client.py", line 433, in call

self._check_error(resp)

File "tencentcloud\common\abstract_client.py", line 364, in _check_error

raise TencentCloudSDKException(code, message, reqid)

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:561feb7c-24ad-4b44-af6f-9df8a531aa8d


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

FailedOperation.UserNotRegistered 表明腾讯云翻译服务尚未开通。请按以下步骤操作:

  1. 登录 腾讯云控制台,进入机器翻译产品页面。
  2. 点击“开通服务”,按指引完成实名认证并开通 TMT(机器翻译)服务。
  3. 回到 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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource