From fe2e74f8469b12bea3b7b8438825fdbbe8d8db80 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Wed, 10 Apr 2024 15:58:42 +0200 Subject: [PATCH] Problem cannot import name 'async_sessionmaker' from 'sqlalchemy.ext.asyncio' Fix: async_sessionmaker was introduced in sqlachemy 2.0, ensure we have at least this version otherwhise it was using a older system package --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bf6a39e90..cd803673e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ dependencies = [ "systemd-python==235", "systemd-python==235", "superfluid~=0.2.1", - "sqlalchemy[asyncio]", + "sqlalchemy[asyncio]>=2.0", "aiosqlite==0.19.0", "alembic==1.13.1", "aiohttp_cors~=0.7.0",