#7364 Traceback (most recent call last): File

78.134**3 Posted at: 2 hours ago

Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 106, 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\_openaicompat.py", line 91, in _item_task
File "videotrans\translator\_openaicompat.py", line 51, 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:/Megaup/5°/GO INCREDIBLY FAST/GO INCREDIBLY FAST (1634p_24fps_AV1-128kbit_AAC-inglese).mp4,
输出结果保存到文件夹: C:/Megaup/5°/GO INCREDIBLY FAST/_video_out/GO INCREDIBLY FAST (1634p_24fps_AV1-128kbit_AAC-inglese)-mp4,
临时文件夹: C:/Pyvideotrans/tmp/26512/13fb7eda6b
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: English, 断句方式:默认断句
TranslateSrt:DeepSeek,原始语言:English,目标语言:Italian, 未选 SendSRT
TTS Service:Edge-TTS (Free), 角色:Diego(Male/IT), 配音语言:Italian, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Soft Subtitles
已选 仅输出mp4


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:en_US
root_dir:C:/Pyvideotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

This error is caused by a missing API key for the translation channel. Although you selected DeepSeek as the translation channel, the software attempted to call an OpenAI-compatible endpoint, and no valid credentials were found (Missing credentials).

Root cause: The DeepSeek translation channel in pyVideoTrans is implemented via the OpenAI-compatible API wrapper, and it requires an API key to be configured. If the key is empty or not saved, this error occurs.

Solution:

  1. Go to the top menu: 翻译设置 (Translation Settings) -> DeepSeek.
  2. Enter your DeepSeek API key. You can obtain one at https://platform.deepseek.com/ (registration and a small recharge are required).
  3. Save the setting and restart the task.

Alternatively, if you do not want to use DeepSeek:

  • Switch the translation channel to a free one such as Google(免费), but note that in mainland China a VPN/proxy is required for Google Translate.
  • Or use M2M100(内置) local translation (the model will be downloaded on first use to 软件目录/models/m2m100_12b).

Note: The SendSRT option is currently unchecked in your config. This does not affect the credential error, but for better AI translation quality it is recommended to check 发送完整字幕 (Send full SRT) when using an AI channel.

请查阅相关文档:

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