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

172.96* Posted at: 7 hours 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\_stage_translate.py", line 31, 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 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 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=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: C:/Users/LENOVO/Videos/4K Video Downloader+/Entrevista a Luka Modric.mp4,
输出结果保存到文件夹: C:/Users/LENOVO/Videos/4K Video Downloader+/_video_out/Entrevista a Luka Modric-mp4,
临时文件夹: D://tmp/33744/0f757b7755
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 西班牙语, 断句方式:默认断句
翻译渠道:Gemini AI,原始语言:西班牙语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 目标语言在下双字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/

1 Replies

PERMISSION_DENIED 表示您的 Gemini API 密钥对应的 Google Cloud 项目未获访问授权或已被封禁。

解决方法:

  1. 检查 菜单 → 翻译设置 → Gemini AI 中的 API Key 是否填写正确且有效。
  2. 前往 Google Cloud Console 确认已为该项目启用 Gemini API 服务(gemini.googleapis.com)。
  3. 确认账户未欠费,且未触发 Google 的滥用限制。
  4. 如果密钥是新创建的,可能需要等待几分钟生效,或联系 Google Cloud 支持团队。

临时替代方案: 在翻译渠道中切换为 DeepSeekOpenAI ChatGPT 等其他 AI 翻译渠道,无需修改其他设置即可继续运行。

请查阅相关文档:

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