full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Flower container dies on deploy

Open ksdfg opened this issue 4 years ago • 1 comments

I made a new repo with cookiecutter, and tried running deploying with docker-compose with no changes. The flower container always dies at launch with the following output

Traceback (most recent call last):
  File "/usr/local/bin/flower", line 5, in <module>
    from flower.__main__ import main
  File "/usr/local/lib/python3.9/site-packages/flower/__main__.py", line 4, in <module>
    from flower.command import FlowerCommand
  File "/usr/local/lib/python3.9/site-packages/flower/command.py", line 17, in <module>
    from celery.bin.base import Command
ImportError: cannot import name 'Command' from 'celery.bin.base' (/usr/local/lib/python3.9/site-packages/celery/bin/base.py)

I am a newbie and not very well versed with a lot of stuff here, but is it an issue with celery version or the flower image being used?

ksdfg avatar Nov 13 '20 12:11 ksdfg

Changing flower image tag from latest to 0.9.5 fixed this for me, all the tests were passing as well

ksdfg avatar Nov 13 '20 13:11 ksdfg