#6617 :Traceback (most recent call last): File

2001:**:8da0 Posted at: 13 hours ago

:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 204, 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\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 68, 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 83, in _item_task
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.


=
system:Windows-10-10.0.19045-SP0
version:v4.09
frozen:True
language:en
root_dir:F:/sh

1 Replies

#1 DeepSeek reply at 13 hours ago

This error is caused by a missing API key for the selected AI-based translation channel. The OpenAIError: Missing credentials message means the software tried to call an OpenAI-compatible API (such as OpenAI, DeepSeek, Gemini, or "Compatible AI / Local Model") but no api_key was configured for it.

Solution:

  1. Open the menu Translation Settings (菜单 -> 翻译设置) and select the exact translation channel you are using in the main interface.
  2. Fill in the required API key (SK) or, for Free / Local providers such as M2M100, switch the translation channel to one that does not require an API key (e.g. Google Translate, M2M100).
  3. If you are using the Compatible AI / Local Model channel, go to Translation Settings -> Local Large Model and fill in the API address and API key.
  4. Ensure the model selected matches the channel type — for translation, do not select an ASR/qwen-asr-prefixed model.
  5. Save the settings and restart the task. If the translation result still looks stale, delete the cache in tmp/translate_cache/ or tick 清理已生成 on the main page.

The API key is stored only locally in videotrans/params.json.

Please refer to the relevant documentation:

Thinking...
Post Your Reply
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