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

14.162* Posted at: 3 hours ago

:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 206, 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 63, 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 76, 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.07
frozen:True
language:en
root_dir:C:/Users/ADMIN/Downloads/win-pyvideotrans-v4.07

1 Replies

This error occurs because the OpenAI-compatible translation channel is missing a required API key.

Solution:

  1. Open Menu → Translation Settings → OpenAI ChatGPT (or the specific channel you selected).
  2. Fill in a valid api_key (SK key) in the corresponding field.
  3. Save the settings and retry the task.

If you are using the "compat AI/local model" channel, ensure you have both the API base URL and the API key configured on that same settings page.

The error clearly indicates no key was provided; the software cannot proceed without it.

Please refer to the documentation:

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

Dondate via PayPal

Related resource