googleapis / langchain-google-alloydb-pg-python

Apache License 2.0
9 stars 9 forks source link

Bug: Missing dependency when running on macOS #115

Closed jackwotherspoon closed 2 months ago

jackwotherspoon commented 2 months ago

SQLAlchemy async engines depend on greenlet package but macOS environments do not install it by default with the sqlalchemy library.

Instead packages that depend on the SQLAlchemy async engine should update their dep to be sqlalchemy[asyncio].

pyproject.toml should be updated to use sqlalchemy[asyncio]: https://github.com/googleapis/langchain-google-alloydb-pg-python/blob/4cfb0186c00d937c0ba7748895d777698dc1bb73/pyproject.toml#L11-L18

Ref: https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html#asyncio-platform-installation-notes-including-apple-m1