#7736 Traceback (most recent call last): File

91.199**5 Posted at: 1 hour ago

Traceback (most recent call last):
File "videotrans\translator\_base.py", line 69, 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 75, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 98, 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]当前工作模式: 翻译视频 单视频模式
原始输入文件名: F:/龙魂/咏春拳系统教学课程 咏春拳自习室出品/极速下载好的文件/咏春拳系统教学课程 咏春拳自习室出品/1.咏春系统教学 课程前言.mp4,
输出结果保存到文件夹: F:/龙魂/咏春拳系统教学课程 咏春拳自习室出品/极速下载好的文件/咏春拳系统教学课程 咏春拳自习室出品/_video_out/1.咏春系统教学 课程前言-mp4,
临时文件夹: D:/pyvideotrans/tmp/22664/c0658cd32e
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 未选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Steffan(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:7890
video_duration_ms=332300


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:你选择了 DeepSeek 翻译渠道,但未填写 DeepSeek 的 API 密钥(报错 Missing credentials / OpenAIError)。

解决方案:

  1. 前往 https://platform.deepseek.com/ 登录并充值(可自定义充值1元),在控制台创建 API Key。

  2. 打开软件菜单 翻译设置 → DeepSeek,将获取到的 Key 填入并保存。

  3. 重新执行翻译视频任务(建议勾选 清理已生成)。

补充说明:

  • 你配置的代理地址为 http://127.0.0.1:7890。

    DeepSeek 是国内 API,软件内置免代理域名列表会自动绕过代理,一般无需为它单独设置代理;若代理未运行或端口错误,反而会影响其他联网渠道(如 Edge-TTS)。

  • 若暂时不想申请 Key,可将翻译渠道改为 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