Skip to content

Flower can not start #794

Closed
Closed

Description

@dtuantran

We get this error after deploying Codabench

image

As metioned here : https://stackoverflow.com/questions/64180054/importerror-cannot-import-name-command-from-celery-bin-base

It seems that our Flower version isn't compatible with Celery. Then we should check and fix those versions.

Activity

  1. lbeziaud commented on Apr 12, 2023

    @lbeziaud
    Contributor

    It works fine with python3.9 and celery<5.0.0

    diff --git a/Dockerfile.flower b/Dockerfile.flower
    index bce19a5..58d6540 100644
    --- a/Dockerfile.flower
    +++ b/Dockerfile.flower
    @@ -1,10 +1,10 @@
    -FROM python:alpine
    +FROM python:3.9-alpine
     
     # Get latest root certificates
     RUN apk add --no-cache ca-certificates && update-ca-certificates
     
     # Install the required packages
    -RUN pip install --no-cache-dir redis==3.0.1 flower==0.9.3
    +RUN pip install --no-cache-dir redis==3.0.1 flower==0.9.3 "celery<5.0.0"
     
     # PYTHONUNBUFFERED: Force stdin, stdout and stderr to be totally unbuffered. (equivalent to `python -u`)
     # PYTHONHASHSEED: Enable hash randomization (equivalent to `python -R`)
  2. dtuantran commented on Apr 25, 2023

    @dtuantran
    ContributorAuthor

    Thank @lbeziaud ! It's merged in #818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions