microsoft / showwhy

MIT License
203 stars 29 forks source link

install_python_deps.sh not found #328

Closed garyfanhku closed 1 year ago

garyfanhku commented 1 year ago

Docker compose failed with ./scripts/install_python_deps.sh missing. Building envrionment: windows 11.

❯ docker-compose --profile all up
Building backend_api
[+] Building 2.2s (15/16)
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 32B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for mcr.microsoft.com/oryx/python:3.9                                                 0.2s
 => [internal] load build context                                                                                  0.1s
 => => transferring context: 5.32kB                                                                                0.0s
 => [ 1/12] FROM mcr.microsoft.com/oryx/python:3.9@sha256:ab02618f0e255c596cece8842765552ba40e5d29d4c79af50e7dda0  0.0s
 => CACHED [ 2/12] RUN apt-get update -y     && apt-get install -y r-base     && apt-get install -y git     && ap  0.0s
 => CACHED [ 3/12] RUN curl -sSL https://install.python-poetry.org | python - --version 1.2.1                      0.0s
 => CACHED [ 4/12] WORKDIR /backend                                                                                0.0s
 => CACHED [ 5/12] COPY ./poetry.toml .                                                                            0.0s
 => CACHED [ 6/12] COPY ./poetry.lock .                                                                            0.0s
 => CACHED [ 7/12] COPY ./pyproject.toml .                                                                         0.0s
 => CACHED [ 8/12] COPY ./requirements.r .                                                                         0.0s
 => CACHED [ 9/12] COPY ./scripts ./scripts                                                                        0.0s
 => CACHED [10/12] RUN Rscript requirements.r                                                                      0.0s
 => ERROR [11/12] RUN poetry config virtualenvs.create false     && ./scripts/install_python_deps.sh               1.7s
------
 > [11/12] RUN poetry config virtualenvs.create false     && ./scripts/install_python_deps.sh:
#15 1.681 /bin/sh: 1: ./scripts/install_python_deps.sh: not found
------
executor failed running [/bin/sh -c poetry config virtualenvs.create false     && ./scripts/install_python_deps.sh]: exit code: 127
ERROR: Service 'backend_api' failed to build : Build failed
rracanicci commented 1 year ago

Hello @garyfanhku, thank you so much for your feedback!

This issue is similar to this one https://github.com/microsoft/showwhy/issues/319 - let's track progress in there. It should be already resolved in the latest main branch, please feel free to try it.