Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation problem #1387

Open
1 task done
yf007 opened this issue Jan 6, 2024 · 1 comment
Open
1 task done

installation problem #1387

yf007 opened this issue Jan 6, 2024 · 1 comment

Comments

@yf007
Copy link

yf007 commented Jan 6, 2024

⚠️ Check for existing issues before proceeding. ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Where are you using SuperAGI?

Windows

Which branch of SuperAGI are you using?

Main

Do you use OpenAI GPT-3.5 or GPT-4?

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

The installation stops with error messages,
And it continues the same problem even after reinstalling docker

PS E:\01.01.2024\Ai\SuperAGI\SuperAGI> docker compose up --build
[+] Running 36/3
✔ proxy 7 layers [⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 275.5s
✔ super__redis 12 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 275.5s
✔ super__postgres 14 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 275.5s
2024/01/06 18:45:31 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
2024/01/06 18:45:31 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
[+] Building 259.4s (31/41) docker:default
=> [backend internal] load build definition from Dockerfile 0.3s
=> => transferring dockerfile: 1.15kB 0.0s
=> [backend internal] load .dockerignore 0.2s
=> => transferring context: 315B 0.0s
=> [gui internal] load .dockerignore 0.2s
=> => transferring context: 214B 0.0s
=> [gui internal] load build definition from Dockerfile 0.3s
=> => transferring dockerfile: 559B 0.0s
=> [celery internal] load build definition from Dockerfile 0.3s
=> => transferring dockerfile: 1.15kB 0.0s
=> WARN: Empty continuation line found in: RUN python3.10 -c "import nltk; nltk.download('punkt')" && python3. 0.3s
=> [celery internal] load .dockerignore 0.3s
=> => transferring context: 315B 0.0s
=> [celery internal] load metadata for docker.io/library/python:3.10-slim-bullseye 2.6s
=> [gui internal] load metadata for docker.io/library/node:18-alpine 2.1s
=> [gui auth] library/node:pull token for registry-1.docker.io 0.0s
=> [backend auth] library/python:pull token for registry-1.docker.io 0.0s
=> [gui internal] load build context 0.2s
=> => transferring context: 4.48MB 0.1s
=> [gui deps 1/5] FROM docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157c 8.6s
=> => resolve docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157cb98bc65c8 0.1s
=> => sha256:661ff4d9561e3fd050929ee5097067c34bafc523ee60f5294a37fd08056a73ca 3.41MB / 3.41MB 0.6s
=> => sha256:0f158788f409a5decd9495205daf4aa17df26d8219d6dc12acab5949342866fe 40.24MB / 40.24MB 7.0s
=> => sha256:f028dff98271801e449c3ebac94a319851128c0ec687e13e00a68b2d98ec4700 2.34MB / 2.34MB 1.0s
=> => sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157cb98bc65c801efa2 1.43kB / 1.43kB 0.0s
=> => sha256:8842b060b01af71c082cee310b428a2d825e940d9fd9e450e05d726aea66a480 1.16kB / 1.16kB 0.0s
=> => sha256:f3776b60850deec9eb1da7746fa20b3f000bf153408dc896d6606704c83f948d 7.14kB / 7.14kB 0.0s
=> => extracting sha256:661ff4d9561e3fd050929ee5097067c34bafc523ee60f5294a37fd08056a73ca 0.1s
=> => sha256:18f25c33705ddc3351cc4893fdc0a38405bdd0741643798918fa2b0146fd5a9d 451B / 451B 0.9s
=> => extracting sha256:0f158788f409a5decd9495205daf4aa17df26d8219d6dc12acab5949342866fe 0.9s
=> => extracting sha256:f028dff98271801e449c3ebac94a319851128c0ec687e13e00a68b2d98ec4700 0.1s
=> => extracting sha256:18f25c33705ddc3351cc4893fdc0a38405bdd0741643798918fa2b0146fd5a9d 0.0s
=> [backend internal] load build context 0.1s
=> => transferring context: 3.11kB 0.0s
=> [backend compile-image 1/8] FROM docker.io/library/python:3.10-slim-bullseye@sha256:683079b18a1c86de6a3652cf0 6.6s
=> => resolve docker.io/library/python:3.10-slim-bullseye@sha256:683079b18a1c86de6a3652cf07e07ebeed7223b69245923 0.0s
=> => sha256:683079b18a1c86de6a3652cf07e07ebeed7223b69245923939f9c4e4fd1c4b47 1.65kB / 1.65kB 0.0s
=> => sha256:146bd19380cd96db51b1f5d734c08289c3452139ddc449640254bd79d843668e 1.37kB / 1.37kB 0.0s
=> => sha256:d23ba0c2094efc54f6bf71e73918c43cb7eac21109d41fe3be7b2ae25e5aac36 6.94kB / 6.94kB 0.0s
=> => sha256:b5a0d5c14ba9ece1eecd5137c468d9a123372b0af2ed2c8c4446137730c90e5b 31.42MB / 31.42MB 4.3s
=> => sha256:89f76bd978528a9900d03ac89f5356f13ba8e48203e113c435f6d4c4772830db 1.08MB / 1.08MB 1.0s
=> => sha256:80639c33deb9d9999a0374af0e6131514aceee736529575677757af3194ba1df 11.54MB / 11.54MB 5.4s
=> => extracting sha256:b5a0d5c14ba9ece1eecd5137c468d9a123372b0af2ed2c8c4446137730c90e5b 1.1s
=> => sha256:5d0306e96fe9d45e01fd9cdb8b6f0c8ba94a7bfb7e50c7dc164eea0f2ea1bb23 243B / 243B 4.5s
=> => sha256:a96e2ba063af136fea03863ae61b26f3a9f5217e19c072ec75ba2c21e885a8ea 3.37MB / 3.37MB 5.3s
=> => extracting sha256:89f76bd978528a9900d03ac89f5356f13ba8e48203e113c435f6d4c4772830db 0.1s
=> => extracting sha256:80639c33deb9d9999a0374af0e6131514aceee736529575677757af3194ba1df 0.3s
=> => extracting sha256:5d0306e96fe9d45e01fd9cdb8b6f0c8ba94a7bfb7e50c7dc164eea0f2ea1bb23 0.0s
=> => extracting sha256:a96e2ba063af136fea03863ae61b26f3a9f5217e19c072ec75ba2c21e885a8ea 0.2s
=> [celery internal] load build context 0.1s
=> => transferring context: 3.11kB 0.0s
=> [celery compile-image 2/8] WORKDIR /app 0.2s
=> [backend compile-image 3/8] RUN apt-get update && apt-get install --no-install-recommends -y wget libpq- 73.6s
=> [backend build-image 3/6] RUN apt-get update && apt-get install --no-install-recommends -y libpq-dev && 18.9s
=> [gui deps 2/5] RUN apk add --no-cache libc6-compat 5.1s
=> [gui builder 2/4] WORKDIR /app 0.2s
=> [gui deps 3/5] WORKDIR /app 0.1s
=> [gui deps 4/5] COPY package.json package-lock.json ./ 0.1s
=> [gui deps 5/5] RUN npm ci 17.7s
=> [gui builder 3/4] COPY --from=deps /app/node_modules ./node_modules 1.4s
=> [gui builder 4/4] COPY . . 0.1s
=> [gui] exporting to image 2.3s
=> => exporting layers 2.3s
=> => writing image sha256:ea368fd5df6eeda7869cf529fccf571efb2c6b81ffbd00a841a149ce63441746 0.0s
=> => naming to docker.io/library/superagi-gui 0.0s
=> [backend compile-image 4/8] RUN python -m venv /opt/venv 2.6s
=> [backend compile-image 5/8] COPY requirements.txt . 0.1s
=> [backend compile-image 6/8] RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements 169.4s
=> [backend compile-image 7/8] RUN python3.10 -c "import nltk; nltk.download('punkt')" && python3.10 -c "impor 3.7s
=> ERROR [backend compile-image 8/8] RUN chmod +x ./entrypoint.sh ./wait-for-it.sh ./install_tool_dependencies.s 0.3s

[backend compile-image 8/8] RUN chmod +x ./entrypoint.sh ./wait-for-it.sh ./install_tool_dependencies.sh ./entrypoint_celery.sh:
0.324 chmod: cannot access './entrypoint.sh': No such file or directory
0.324 chmod: cannot access './wait-for-it.sh': No such file or directory
0.324 chmod: cannot access './install_tool_dependencies.sh': No such file or directory
0.324 chmod: cannot access './entrypoint_celery.sh': No such file or directory


failed to solve: process "/bin/sh -c chmod +x ./entrypoint.sh ./wait-for-it.sh ./install_tool_dependencies.sh ./entrypoint_celery.sh" did not complete successfully: exit code: 1

How to replicate your Issue?

..

@yf007
Copy link
Author

yf007 commented Jan 6, 2024

I found a simple solution!
Just change this syntax

RUN python3.10 -c "import nltk; nltk.download('punkt')" &&
python3.10 -c "import nltk; nltk.download('averaged_perceptron_tagger')" \

in the Dockerfile file

to that

RUN python3.10 -c "import nltk; nltk.download('punkt')" &&
python3.10 -c "import nltk; nltk.download('averaged_perceptron_tagger')"

Hope I helped someone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant