#6557 Your project has been denied access. Please contact support.:Traceback (most recent call last): File "videotrans\transl

54.249.**8 Posted at: 1 hour ago

Your project has been denied access. Please contact support.:Traceback (most recent call last):
File "videotrans\translator\_gemini.py", line 95, 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\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 68, in run
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 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 117, in _item_task
videotrans.configure.excepts.StopTask: Your project has been denied access. Please contact support.

1 Replies

该错误的直接原因是:Gemini API 返回 403 PERMISSION_DENIED,表示您使用的 Google Cloud 项目被禁止访问 Gemini 平台,因此翻译渠道无法正常调用。

请按以下步骤排查:

  1. 确认 Gemini API Key 是否有效且未过期;如果曾重新创建过 Key,请在软件「翻译设置 → Gemini」中更新。
  2. 登录 Google Cloud / Google AI Studio,确认该项目已启用「Generative Language API」(生成式语言 API)。
  3. 检查 API Key 的项目是否被 Google 限制或暂停;该报错通常不是语法错误,而是项目级权限被封禁,需联系 Google 支持或换一个可用的 Google 项目/API Key。
  4. 确认当前 Gemini 模型名称在所选地区可用,部分模型或地区会返回 Permission Denied。
  5. 若使用了代理,请确保代理出口 IP 在 Google 支持范围内;若不需要代理,请清空软件中的代理设置。
  6. 如果以上均无效,可暂时改用 DeepSeek、OpenAI 等其他翻译渠道。

请查阅相关文档:

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