#7483 Traceback (most recent call last): File

2408**9184 Posted at: 1 hour ago

Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 107, 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\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 74, 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:b9473660-b567-49ba-a28a-dd3f8ef3f6b1

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/数字媒体素材/字幕翻译/3 Lessons from Steve Jobs (Key Points from Stanford '05 Speech).mp4,
输出结果保存到文件夹: D:/数字媒体素材/字幕翻译/_video_out/3 Lessons from Steve Jobs (Key Points from Stanford '05 Speech)-mp4,
临时文件夹: D:/数字媒体素材/字幕翻译/win-pyvideotrans-v4.11/tmp/11828/16f473e8de
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:腾讯翻译,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/数字媒体素材/字幕翻译/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:腾讯翻译服务未开通。报错信息 code:FailedOperation.UserNotRegistered message:Service has not been opened, please open service at Tencent Cloud console 明确表示,你的腾讯云账号尚未开通「机器翻译 TMT」服务。

解决方案:

  1. 登录腾讯云控制台,进入「机器翻译 TMT」产品页面,点击开通服务。
  2. 确认已在腾讯云「访问管理」中创建 API 密钥(SecretID 和 SecretKey),并确保该密钥有调用机器翻译的权限。
  3. 将 SecretID 和 SecretKey 正确填写到软件菜单「翻译设置」→「腾讯翻译」中。
  4. 如仍无法使用,可改用其他翻译渠道(推荐 DeepSeek,翻译质量更好,价格低)。

另需注意:

  • 你当前使用的是 Windows 预打包版 v4.11。
  • 你的视频文件路径含中文、空格和特殊符号(如 '()),虽然本次报错主因是腾讯服务未开通,但建议将文件重命名为纯英文数字下划线形式,输出目录也应尽量使用简短英文路径,避免后续 FFmpeg 阶段报错。

请查阅相关文档:

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