Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot import name FlowerCommand from flower.command

I have installed apache airflow version 2.1.2 but when I starts the worker then it says that it cannot import name FlowerCommand from flower.command.

Operating system centos 7, python version is 3.7.6, apahce-airflow version is 2.1.2, celery version is 4.4.7, flower version is 0.9.7

I have attached a scrennshot of my error for further calarificationenter image description here

like image 835
Shafiqul Islam Avatar asked Oct 19 '25 12:10

Shafiqul Islam


1 Answers

Airflow 2.1.2 doesn't support Celery 5 yet.

Long story short: just downgrade Celery provider:

$ pip install --upgrade apache-airflow-providers-celery==2.0.0

More details are within issue:

https://github.com/apache/airflow/discussions/18115

like image 50
nvolynets Avatar answered Oct 21 '25 02:10

nvolynets