From c1a293b2f6963c1da3abdb02a51300456491b2ad Mon Sep 17 00:00:00 2001 From: Nazim Date: Sun, 1 Feb 2026 19:53:04 +0000 Subject: [PATCH] Pin sqlalchemy<2.0 to fix Flask-SQLAlchemy 2.5.1 compatibility Flask-SQLAlchemy 2.5.1 uses _include_sqlalchemy() which iterates over sqlalchemy.__all__, but SQLAlchemy 2.0 removed __all__. This causes an AttributeError crash on startup: AttributeError: module 'sqlalchemy' has no attribute '__all__' The previous pin (==2.0.30) was incompatible with Flask-SQLAlchemy 2.5.1. Pin to <2.0 until Flask-SQLAlchemy is upgraded to 3.x. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c379e89..b236612 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ embit>=0.6.1 Flask>=2.1.1 Flask-SQLAlchemy==2.5.1 -sqlalchemy==2.0.30 +sqlalchemy>=1.4.42,<2.0 psycopg2-binary requests>=2.26.0 pysocks==1.7.1 \ No newline at end of file