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

Install is looking for an older version of pydantic, which is no longer provided as a whl #565

Closed Kestranor closed 2 months ago

Kestranor commented 2 months ago

Description of the bug:

The installation is looking for an older version of pydantic which is no longer provided as a whl. Therefore it is trying to build it, which takes ages. Platform: Raspberry Pi Zero W.

Actual vs expected behavior:

Expectation: dependency tree looks for the latest version of pydantic. Actual: an old version is pulled.

Any other information you'd like to share?

Probably not a "bug" per se, I just did not find a more accurate way to post this, and since I'm just a beginner with everything related to linux, python, raspberry and how these deployments should work, I don't really know how to fix this myself. When checking the setup.py, it seems like a specific version is not defined for pydantic, so I would assume that it would take the latest, but clearly it is not the case. Any help is appreciated.

EDIT: After checking, it seems the new version was only released yesterday, so I'm probably asking too soon... I'd still be interested if the dependency tree can be changed by the user somehow so I can set it to the last version (assuming its compatible of course), as the Pi Zero is just not capable of finishing the build in any reasonable time. Otherwise, feel free to cancel this.

EDIT2: Nevermind, found the root cause of this: the whl package build would still be provided, but the build for Python 3.11 of armv6l platform has failed on PiWheels. I opened a separate issue for that there. I'm closing this, since the main issue has nothing to do with this API.