#7336 Traceback (most recent call last): File

149.40**5 Posted at: 2 hours ago

Traceback (most recent call last):
File "videotrans\translator\_base.py", line 70, in run
File "videotrans\translator\_base.py", line 153, in _run_srt
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 73, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 88, in _item_task
File "videotrans\translator\_openaicompat.py", line 47, in _create_completion
File "openai\_client.py", line 194, in init
openai.OpenAIError: Missing credentials. Please pass an api_key, workload_identity, admin_api_key, or set the OPENAI_API_KEY or OPENAI_ADMIN_KEY environment variable.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/CRTubeGet Downloaded/反派亲妈:反派漂亮亲妈十斤反骨/第2集.mp4,
输出结果保存到文件夹: C:/CRTubeGet Downloaded/反派亲妈:反派漂亮亲妈十斤反骨/_video_out/第2集-mp4,
临时文件夹: D:/pyVedio/win-pyvideotrans-v4.12-0913/tmp/19492/07eae96844
已选 清理已存在
未启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yan(Female/HK), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
video_duration_ms=154333


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

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:翻译渠道选择了 DeepSeek,但未填写对应的 API 密钥,导致 OpenAI 兼容客户端初始化时抛出 Missing credentials

操作步骤:

  1. 前往 https://platform.deepseek.com/ 注册登录并充值(支持自定义充值,最低1元),在控制台创建 API Key。
  2. 打开软件顶部菜单 翻译设置DeepSeek,将获取到的 API Key 填入并保存。
  3. 回到主界面重新执行任务。若不想使用 DeepSeek,可将翻译渠道改为其他已配置密钥的渠道(如已配置的 OpenAI、Gemini 等),或使用免费的 Google(免费)(国内需科学上网)或本地 M2M100(内置)

请查阅相关文档:

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