Closed MichaelKarpe closed 9 months ago
hi @MichaelKarpe, with https://github.com/googleapis/python-bigquery/releases/tag/v3.13.0 and https://github.com/googleapis/python-bigquery/pull/1696, Shapely >= 2.0 should be supported with the Vertex SDK.
I was able to run the following code snippet locally
! pip3 install --upgrade --force-reinstall google-cloud-aiplatform
import vertexai
from vertexai.language_models import TextEmbeddingModel
Please let us know if you still run into an error.
I'm getting this exception with version 1.39.0, have to downgrade to 1.35.0 (https://github.com/googleapis/python-aiplatform/commit/e76abd3901644f99ec6850b35e155d8b2c54008a)
@nayaknishant sorry for the very late reply, but I was actually asking to enforce the constraint due to a bug and not to relax it. Investigating further, I opened https://github.com/googleapis/python-bigquery/issues/1842 that should solve the issue if addressed.
@irfanhabib this may be of interest for you. You should be able to use the latest google-cloud-aiplatform
if you specify shapely<2.0.0
.
Shapely >= 2.0 has been allowed following #2829 but is not supported, leading to a very similar error to #1852. Issue is solved by setting shapely < 2.0.
Environment details
python --version
3.9.6pip --version
23.2google-cloud-aiplatform
version:pip show google-cloud-aiplatform
1.35.0Steps to reproduce
Code example
Stack trace