codalab / codabench

Codabench is a flexible, easy-to-use and reproducible benchmarking platform. Check our paper at Patterns Cell Press https://hubs.li/Q01fwRWB0
Apache License 2.0
60 stars 26 forks source link

Poetry problem #1504

Open ihsaan-ullah opened 4 days ago

ihsaan-ullah commented 4 days ago

On mac (apple chip) poetry installation fails. I am using the latest develop branch

 => CANCELED [codabench-compute_worker 2/9] RUN apt-get update && curl -fsSL https://get.docker.com | sh                                             36.5s
 => [codabench-flower  1/10] FROM docker.io/library/python:3.9-alpine@sha256:8a3f589d10f082c9392f43ebab335f625076d9b3689c41cee43a23ab379076a9         0.0s
 => CACHED [codabench-flower  2/10] RUN apk add --no-cache ca-certificates && update-ca-certificates curl                                             0.0s
 => CACHED [codabench-flower  3/10] RUN apk add curl                                                                                                  0.0s
 => ERROR [codabench-flower  4/10] RUN curl -sSL https://install.python-poetry.org | python3 -                                                       36.3s
 => [codabench-site_worker 4/9] RUN poetry config virtualenvs.create false                                                                            0.6s
 => [codabench-django 5/9] RUN poetry config virtualenvs.in-project false                                                                             0.6s
 => [codabench-site_worker 6/9] COPY pyproject.toml ./                                                                                                0.0s
 => [codabench-site_worker 7/9] COPY poetry.lock ./                                                                                                   0.0s
 => CANCELED [codabench-site_worker 8/9] RUN poetry install                                                                                           1.9s
------                                                                                                                                                     
 > [codabench-flower  4/10] RUN curl -sSL https://install.python-poetry.org | python3 -:                                                                   
#0 36.30 Retrieving Poetry metadata                                                                                                                        
#0 36.30                                                                                                                                                   
#0 36.30 # Welcome to Poetry!
#0 36.30 
#0 36.30 This will download and install the latest version of Poetry,
#0 36.30 a dependency and package manager for Python.
#0 36.30 
#0 36.30 It will add the `poetry` command to Poetry's bin directory, located at:
#0 36.30 
#0 36.30 /root/.local/bin
#0 36.30 
#0 36.30 You can uninstall at any time by executing this script with the --uninstall option,
#0 36.30 and these changes will be reverted.
#0 36.30 
#0 36.30 Installing Poetry (1.8.3)
#0 36.30 Installing Poetry (1.8.3): Creating environment
#0 36.30 Installing Poetry (1.8.3): Installing Poetry
#0 36.30 Installing Poetry (1.8.3): An error occurred. Removing partial environment.
#0 36.30 Poetry installation failed.
#0 36.30 See /poetry-installer-error-ohakc5ah.log for error logs.
------
failed to solve: executor failed running [/bin/sh -c curl -sSL https://install.python-poetry.org | python3 -]: exit code: 1
ihsaan-ullah commented 4 days ago

It seems that the problem is coming from building flower. Commenting the flower section in docker-compose.yaml fixes the problem

ihsaan-ullah commented 4 days ago

localhost:8000 works but does not load style

Screenshot 2024-06-27 at 9 40 51 AM

localhost does not work (without port 8000)

Screenshot 2024-06-27 at 9 41 23 AM