#7255 翻译字幕阶段出错 [腾讯翻译] tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKExce

60.220**2 Posted at: 1 hour ago

翻译字幕阶段出错 [腾讯翻译] 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:11852e86-ad39-4e98-99c3-27f99011f34b
Traceback (most recent call last):

File "videotrans\translator\_base.py", line 67, in run

File "videotrans\translator\_base.py", line 105, 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\task\job.py", line 35, in run

File "videotrans\task\job.py", line 137, in process_task

File "videotrans\task\translate_srt.py", line 51, in trans

File "videotrans\translator\_runner.py", line 67, in run

File "videotrans\translator\_base.py", line 73, in run

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

File "videotrans\translator\_tencent.py", line 47, 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:11852e86-ad39-4e98-99c3-27f99011f34b
[TranslateSrt]翻译字幕: OutputFormat=单语字幕
[TaskCfgSTS]
原始输入文件名: E:/AE/After Effects Guru/01 After Effects CC Essential Training(核心培训)/122431_01_02_3D15_interface.srt,
输出结果保存到文件夹: E:/AE/After Effects Guru/01 After Effects CC Essential Training(核心培训)
翻译渠道:腾讯翻译,原始语言:auto,目标语言:zh-cn, 已选 发送完整字幕


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.12-0912_20260913_140223

1 Replies

#1 DeepSeek reply at 1 hour ago

报错核心原因:你的腾讯云账号未开通「机器翻译 TMT」服务,错误码 FailedOperation.UserNotRegistered 已明确说明 Service has not been opened

解决步骤:

  1. 登录腾讯云控制台,进入 机器翻译 TMT 产品页:https://console.cloud.tencent.com/tmt
  2. 点击「立即开通」/「开通服务」,按提示完成开通(该服务通常有免费额度,超出后按量计费)。
  3. 确认已在 访问管理 CAM 中创建了 API 密钥(SecretID / SecretKey),且该密钥所属账号与开通服务的账号一致。
  4. 回到 pyVideoTrans,菜单 → 翻译设置 → 腾讯翻译,重新填写/确认 SecretID 与 SecretKey,保存。
  5. 重新执行翻译字幕任务。

补充说明:

  • 腾讯翻译仅限中国大陆 IP 使用,请确保当前网络为国内 IP。
  • 若不方便开通腾讯云服务,可改用 DeepSeek(翻译质量更佳、价格低)或 Google(免费)(需科学上网)。切换到 DeepSeek 的方法:在 https://platform.deepseek.com/ 注册充值并获取 API Key,填入「菜单 → 翻译设置 → DeepSeek」,然后翻译渠道下拉选择 DeepSeek

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource