#4774 videotrans.configure._except.StopRetry: Your project has been denied access. Please contact support.

117.4* Posted at: 1 day ago

Your project has been denied access. Please contact support.
Traceback (most recent call last):
File "videotrans\translator\_gemini.py", line 103, in _item_task
File "google\genai\models.py", line 5407, in generate_content_stream
File "google\genai\models.py", line 4101, in _generate_content_stream
File "google\genai\_api_client.py", line 1405, in request_streamed
File "google\genai\_api_client.py", line 1224, in _request
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 420, in exc_check
File "tenacity\__init__.py", line 187, in reraise
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "google\genai\_api_client.py", line 1189, in _request_once
File "google\genai\errors.py", line 121, in raise_for_response
File "google\genai\errors.py", line 146, in raise_error
google.genai.errors.ClientError: 403 PERMISSION_DENIED. {'error': {'code': 403, 'message': 'Your project has been denied access. Please contact support.', 'status': 'PERMISSION_DENIED'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 65, in run
File "videotrans\task\trans_create.py", line 678, in trans
File "videotrans\translator\__init__.py", line 1029, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, 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 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 123, in _item_task
videotrans.configure._except.StopRetry: Your project has been denied access. Please contact support.


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:en
root_dir:E:/APP/win-pyvideotrans-v3.99-420

1 Replies

This is a Google Gemini API permission error. The 403 PERMISSION_DENIED with message "Your project has been denied access" means that the Google Cloud project linked to your Gemini API key has been blocked or does not have access to the Gemini model.

Solutions:

  1. Verify your API key in MenuTranslation SettingsGemini AI. Ensure the key is correct and has not expired or been revoked.
  2. Check your Google Cloud Console:

    • Go to Google Cloud Console.
    • Ensure billing is enabled for your project.
    • Confirm that the Generative Language API (Gemini) is enabled in APIs & ServicesLibrary.
  3. Upgrade your plan: Google Gemini API requires a paid billing account. If you are on a free trial that has ended, you will see this error. Enable billing or switch to a paid tier.
  4. Contact Google Support: If the above steps are correct, your project may have been flagged. Visit Google Cloud Support for assistance.

Please refer to related 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.

Related resource