puckel / docker-airflow

Docker Apache Airflow
Apache License 2.0
3.78k stars 544 forks source link

sqlalchemy.ext.declarative.clsregistry #645

Open tmpuch opened 3 years ago

tmpuch commented 3 years ago

I am able to build the container with the following command: docker build --rm -t puckel/docker-airflow .

Then run the container with this command. docker run -d -p 8080:8080 -v D:/airflow/local_dags/:/usr/local/airflow/dags --name airflow puckel/docker-airflow webserver

It fails and when I check the log I see it complaining about: ModuleNotFoundError: No module named 'sqlalchemy.ext.declarative.clsregistry'

I added a pip install SQLAlchemy to Dockerfile:
&& pip install 'SQLAlchemy==1.3.23' \ but that has not helped and still get the same result in the log.

Any idea how to get around this?

yadavarvind commented 3 years ago

use pip install SQLAlchemy==1.3.13, it is working for me