You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] MLflow tracking crashes with SQLAlchemy 2.1 when mlflow is older than 3.9 #624
I ran into this while setting up DeepTab in a fresh environment with an older mlflow. When I turned on MLflow tracking, fit() crashed before training started. It happens when mlflow is older than 3.9 and SQLAlchemy 2.1 is installed. The error is an ImportError that comes from inside mlflow.
Older mlflow versions import a class from SQLAlchemy that SQLAlchemy 2.1 removed. mlflow fixed this in 3.9.0 (mlflow/mlflow#20203). DeepTab still allows mlflow from 2.10, and mlflow 2.22.0 does not block SQLAlchemy 2.1, so pip accepts this combination.
I think CI did not catch it because no test built a real MLflow logger. The minimum-dependency CI jobs that install mlflow (extras and tabr) get mlflow 2.22.0 with SQLAlchemy 2.1, and the new test in #544 fails there with the same ImportError.
To Reproduce
Create a fresh environment and install DeepTab together with an older mlflow:
Activity