Shafiqul Islam
Shafiqul Islam

Reputation: 93

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

Upvotes: 4

Views: 2722

Answers (2)

Wamiq Raza AI
Wamiq Raza AI

Reputation: 39

import flwr as fl ModuleNotFoundError: No module named 'flwr'

pip install flwr

If you are using Jupyter Notebook or Google Colab, you can also prepend the ! character to run the command as a shell command within the notebook:

!pip install flwr

Upvotes: -2

nvolynets
nvolynets

Reputation: 119

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

Upvotes: 7

Related Questions