google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.62k stars 322 forks source link

Cannot parse value of 'http_proxy' env var #584

Closed dengwen168 closed 2 weeks ago

dengwen168 commented 1 month ago

Description of the bug:

I test the python code and got the following error msg, How to solve this issue? thanks.

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1728007314.658664 284 http_proxy_mapper.cc:130] cannot parse value of 'http_proxy' env var. Error: INVALID_ARGUMENT: Could not parse 'scheme' from uri '127.0.0.1:7890'. Scheme must begin with an alpha character [A-Za-z].

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

manojssmk commented 1 month ago

Hi @dengwen168

Please share the sample code and prompt you are using so it can be debugged. Have you tried running the same code in Colab?

Thanks

github-actions[bot] commented 1 month ago

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks!