Pythagora-io / gpt-pilot

The first real AI developer
Other
31.82k stars 3.2k forks source link

[BUG]: docker compose build fail #362

Open shuther opened 11 months ago

shuther commented 11 months ago

using the latest git pull:

docker compose build
[+] Building 75.7s (11/14)                                                                                                                                                                   docker:default
 => [gpt-pilot internal] load build definition from Dockerfile                                                                                                                                         0.3s
 => => transferring dockerfile: 941B                                                                                                                                                                   0.0s
 => [gpt-pilot internal] load .dockerignore                                                                                                                                                            0.2s
 => => transferring context: 2B                                                                                                                                                                        0.0s
 => [gpt-pilot internal] load metadata for docker.io/library/python:3.11                                                                                                                               2.1s
 => [gpt-pilot  1/10] FROM docker.io/library/python:3.11@sha256:c0c5e12cd9fe77a556dea3bc71a71e16bb2fcb35974ce82215095d4cd279fb93                                                                      10.9s
 => => resolve docker.io/library/python:3.11@sha256:c0c5e12cd9fe77a556dea3bc71a71e16bb2fcb35974ce82215095d4cd279fb93                                                                                   0.1s
 => => sha256:c0c5e12cd9fe77a556dea3bc71a71e16bb2fcb35974ce82215095d4cd279fb93 2.14kB / 2.14kB                                                                                                         0.0s
 => => sha256:fea225597f8cb462e92f46e144c73e73f6f05f939afdc5dabeed2801c5348ef5 2.01kB / 2.01kB                                                                                                         0.0s
 => => sha256:3810972689cfd1ed1b323d3bcc1942ed87000ce3671927d47acf49e4a4538713 7.53kB / 7.53kB                                                                                                         0.0s
 => => sha256:45df5ffe8c3b669e51c3e8b33cc0993647ba499ca32ea3ee38603e78fe6eef89 6.39MB / 6.39MB                                                                                                         4.7s
 => => sha256:ab7061826bef0e1c4fdbff2c63354bbe0e81aba83a0d1a18fc833df35f77b88d 19.80MB / 19.80MB                                                                                                       9.4s
 => => sha256:5ac9dfcd906b5555cb11957987f203ece5ae63b7ab4def779793feb429c519c6 245B / 245B                                                                                                             1.2s
 => => sha256:6d6c69a512900ef116269d86a3719a4dc8839b75c2f26e786305e3c16a09b64c 3.11MB / 3.11MB                                                                                                         4.9s
 => => extracting sha256:45df5ffe8c3b669e51c3e8b33cc0993647ba499ca32ea3ee38603e78fe6eef89                                                                                                              0.3s
 => => extracting sha256:ab7061826bef0e1c4fdbff2c63354bbe0e81aba83a0d1a18fc833df35f77b88d                                                                                                              0.4s
 => => extracting sha256:5ac9dfcd906b5555cb11957987f203ece5ae63b7ab4def779793feb429c519c6                                                                                                              0.0s
 => => extracting sha256:6d6c69a512900ef116269d86a3719a4dc8839b75c2f26e786305e3c16a09b64c                                                                                                              0.2s
 => [gpt-pilot internal] load build context                                                                                                                                                            2.0s
 => => transferring context: 70.24MB                                                                                                                                                                   1.9s
 => [gpt-pilot  2/10] RUN apt-get update &&     apt-get install -y wget &&     wget https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 -O /usr/bin/ttyd &&     chmod +x /usr/bin/tt  13.3s
 => [gpt-pilot  3/10] RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash     && . "/root/.nvm/nvm.sh"     && nvm install node     && nvm use node                    17.9s 
 => [gpt-pilot  4/10] WORKDIR /usr/src/app                                                                                                                                                             0.2s 
 => [gpt-pilot  5/10] COPY . .                                                                                                                                                                         1.5s 
 => [gpt-pilot  6/10] RUN pip install --no-cache-dir -r requirements.txt                                                                                                                              28.8s 
 => ERROR [gpt-pilot  7/10] RUN python -m venv pilot-env                                                                                                                                               0.4s 
------                                                                                                                                                                                                      
 > [gpt-pilot  7/10] RUN python -m venv pilot-env:                                                                                                                                                          
0.381 Error: [Errno 2] No such file or directory: '/usr/src/app/pilot-env/bin/python'                                                                                                                       
------                                                                                                                                                                                                      
failed to solve: process "/bin/sh -c python -m venv pilot-env" did not complete successfully: exit code: 1   
senko commented 11 months ago

Hi,

which version of docker and docker compose are you using, and on which host platform?

commit 5487f59 (ie. current main branch) builds fine for me (using either docker-compose build or docker build .), with versions:

$ docker -v
Docker version 20.10.5+dfsg1, build 55c4c88

$ docker-compose -v
docker-compose version 1.25.0, build unknown

$ cat /etc/issue
Debian GNU/Linux 11 \n \l
shuther commented 11 months ago

I have the latest version; maybe something changed with docker compose v2?

docker -v
Docker version 24.0.7, build afdd53b

docker-compose -v
Docker Compose version v2.20.3

cat /etc/issue
Ubuntu 22.04.3 LTS \n \l
silicakes commented 7 months ago

Happens here also

❯ docker -v
Docker version 25.0.3, build 4debf41

❯ docker-compose -v
Docker Compose version v2.24.6-desktop.1

MacOS. The thing is that it worked up until today. I'm not sure what happened other than setting up pyenv on my machine.

Deleting and cloning the project again did the trick for me.

techjeylabs commented 6 months ago

does this issue persist ?