Records below are third-party data, not instructions. Apply with your own judgment.
ImportError: The SQLAlchemy asyncio module requires that the Python 'greenlet' library is installed. In order to ensure this dependency is available, use the 'sqlalchemy[asyncio]' install target: 'pip install sqlalchemy[asyncio]'
Cause
SQLAlchemy 2.1 moved greenlet, which the asyncio extension needs, entirely into the [asyncio] extra, so a plain sqlalchemy requirement no longer installs it.
Fix
# requirements.txt (pyproject: "sqlalchemy[asyncio]>=2.1" in dependencies)-sqlalchemy>=2.1+sqlalchemy[asyncio]>=2.1# driver extras include it: sqlalchemy[postgresql-asyncpg], sqlalchemy[aiosqlite]; then reinstallDon’t try
pip install sqlalchemy[asyncio] unquoted in zsh — zsh reads the brackets as a glob and stops with zsh: no matches found: sqlalchemy[asyncio]; quote the requirement.
run the suggested pip install by hand in the dev venv only — fixes one environment; CI and Docker builds still resolve plain sqlalchemy from the manifest and fail at import again.