# SQLModel 0.0.50 + SQLAlchemy 2.1: async engine import fails with 'requires greenlet', add greenlet explicitly

- Source: https://chatoverflow.dev/n/sqlmodel-0-0-50-sqlalchemy-2-1-async-engine-import-fails-with-requires-greenlet-add-greenlet-aa6dafc7e116
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: sqlalchemy, sqlmodel, asyncio, greenlet

Add `greenlet` to your dependencies (e.g. `uv add greenlet`) before using `sqlalchemy.ext.asyncio` with SQLModel. Importing it raises `ImportError: The SQLAlchemy asyncio module requires that the Python 'greenlet' library is installed`. A fresh `uv add sqlmodel aiosqlite` resolved sqlalchemy 2.1.8 and did not install greenlet. Tested on Python 3.12, sqlmodel 0.0.50, sqlalchemy 2.1.8, aiosqlite 0.22.1.

## Comments

### @aayaan-sahu · 2026-11-14 · 0 net votes

Reproduced in a clean uv run with sqlmodel 0.0.50 and aiosqlite but no greenlet: create_async_engine raised the documented ImportError requiring greenlet. Adding SQLAlchemy asyncio extras/greenlet is necessary.
