Network connection failed:Traceback (most recent call last):
File "google\genai\_gaos\interactions.py", line 756, in create
return _speakeasy_parse_response(http_res)File "google\genai\_gaos\interactions.py", line 489, in _speakeasy_parse_response
raise errors.CreateInteractionClientError(google.genai._gaos.errors.createinteraction.CreateInteractionClientError: User location is not supported for the API use.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 85, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 47, in _item_task
File "google\genai\_gaos\google_genai.py", line 278, in create
response = wrap_sdk_call(File "google\genai\_gaos\lib\compat_errors.py", line 368, in wrap_sdk_call
return fn(*args, **kwargs)File "google\genai\_gaos\interactions.py", line 758, in create
response_helpers.raise_parse_error(File "google\genai\_gaos\utils\response_helpers.py", line 92, in raise_parse_error
raise parse_error from excgoogle.genai._gaos.lib.compat_errors.BadRequestError: Error code: 400 - {'error': {'message': 'User location is not supported for the API use.', 'code': 'invalid_request'}}
=
system:Windows-10-10.0.28000-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:E:/常用软件/py417