#5760 翻译字幕阶段出错 [Gemini AI] Your project has been denied access. Please contact support.Traceback (most recent call last):

119.13* Posted at: 4 days ago

翻译字幕阶段出错 [Gemini AI] Your project has been denied access. Please contact support.
Traceback (most recent call last):

File "videotrans\translator\_gemini.py", line 89, 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\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\translate_srt.py", line 47, in trans

File "videotrans\translator\_runner.py", line 63, in run

File "videotrans\translator\_base.py", line 71, in run

File "videotrans\translator\_base.py", line 200, 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 111, in _item_task

videotrans.configure.excepts.StopTask: Your project has been denied access. Please contact support.
cfg=TaskCfgSTS(uuid='3c4da89a6b', name='C:/Users/on4my/Desktop/小新日本/23.2.srt', dirname='C:/Users/on4my/Desktop/小新日本', noextname='23.2', basename='23.2.srt', ext='srt', target_dir='E:/share/TEDDYCAT/win-pyvideotrans-v4.00-525/output/translate', cache_folder=None, is_cuda=False, source_language=None, source_language_code='Japanese', source_sub='C:/Users/on4my/Desktop/小新日本/23.2.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Khmer', target_sub='E:/share/TEDDYCAT/win-pyvideotrans-v4.00-525/output/translate/23.2.Khmer.srt', target_wav=None, target_wav_output=None, translate_type=6)


=
system:Windows-10-10.0.26200-SP0
version:v4.05
frozen:True
language:zh
root_dir:E:/share/TEDDYCAT/win-pyvideotrans-v4.00-525

1 Replies

这是由于您的Gemini API密钥对应的 Google Cloud 项目被拒绝访问所致,表现为 403 PERMISSION_DENIED 错误。最直接的原因是密钥失效、项目未启用 Gemini API,或触发了风控/配额限制。

解决办法如下:

  1. 验证 API 密钥
    进入 Google AI Studio 检查您的 API Key 是否仍有效,必要时重新生成一个新 Key。
  2. 确认 Gemini API 已启用

    • 登录 Google Cloud Console
    • 确保当前项目已启用 Gemini API(在“API 和服务”中搜索“Gemini API”并启用)。
    • 检查是否有未支付的账单或超出免费额度。
  3. 检查代理设置
    如果您在中国大陆,必须配置可用的网络代理(例如 http://127.0.0.1:7890),并在软件主界面的“网络代理”框中填写,确保能正常访问 Google 服务。
  4. 更换 Gemini 模型
    进入 菜单 → 工具 → 高级选项 → 字幕翻译调整,将 Gemini 模型 切换为其他高版本模型(如 gemini-2.5-flash)重试。
  5. 联系 Google 支持
    如果以上均无效,错误明确要求联系支持,请通过 Google Cloud 控制台的“支持”渠道提交工单,说明项目被拒绝访问。

请查阅相关文档:

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