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

Unsupported GCP env message #550

Open akshit0201 opened 2 months ago

akshit0201 commented 2 months ago

Description of the bug:

I keep seeing this warning:

I0000 00:00:1726059537.056136 10152084 check_gcp_environment_no_op.cc:29] ALTS: Platforms other than Linux and Windows are not supported

For every api call I make from the python sdk.

For one api call this warning is fine, but as I make concurrent calls my console is flooded with these warning messages. Pls fix this warning, or provide a way to suppress it.

Actual vs expected behavior:

Actual: I0000 00:00:1726059537.056136 10152084 check_gcp_environment_no_op.cc:29] ALTS: Platforms other than Linux and Windows are not supported Expected: No message

Any other information you'd like to share?

Chip: Apple M2 MacOS: 14.6.1 (23G93)

MarkDaoust commented 2 months ago

This doesn't replicate on my mac(14.6.1, M3).

Can you tell us more about your setup? Is this a cloud instance or a local machine?

Anyway, this is coming from the underlying cloud libraries, not from this SDK package, it's not something we have control over.

akshit0201 commented 2 months ago

@MarkDaoust It's happening when I'm calling the File apis.