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

protobuf dep is < 5.0 #539

Closed abaoai closed 2 months ago

abaoai commented 2 months ago

Description of the bug:

The 4.xx protobuf packages are outdated.

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

Gunand3043 commented 2 months ago

@abaoai , Could you please provide more details about the issues you're facing?

Are there any particular features or functionalities that are not working as expected?

abaoai commented 2 months ago

I have downstream service built with grpc as well. The generated python code runs on the latest 5.27. It breaks when running on the latest protobuf(5.28). So I have to pick 5.27 in requirements.txt. That triggers a docker build error when both protobuf 5.27 and generative-ai-python lives in the same requirements.txt file.

MarkDaoust commented 2 months ago

I pushed a v0.8.0 release this morning: https://pypi.org/project/google-generativeai/#history

Installing that gets a >5.0.0 version of protobuf.

Fixed.