ImportError: cannot import name 'Command' from 'celery.bin.base'

pedro.caicedo.dev picture pedro.caicedo.dev · Oct 3, 2020 · Viewed 7.7k times · Source

When I run the command

flower -A main --port=5555

Flower doesn't work, the error is:

> ImportError: cannot import name 'Command' from 'celery.bin.base'

Any ideas? Main is a Django Project

Answer

DejanLekic picture DejanLekic · Oct 3, 2020

Flower is always lagging behind Celery, so if you use the latest Celery (they refactored the CLI) it will probably fail. Stick to 4.4.x until Flower catches up.