automateyournetwork / packet_raptor

An AI Assistant using RAPTOR to talk to .pcaps
GNU General Public License v3.0
27 stars 10 forks source link

Docker Build fails, potential build script problems #2

Closed fordjes closed 6 months ago

fordjes commented 6 months ago

When executing the docker-compose for the packet_raptor tool I am seeing this error, I have not launched the image standalone to try and manually execute install of failed components as of yet, figured I'd bring it to your attention.

root@DESKTOP-6QTV3SR:/mnt/c/Users/jesse/docker_stuff/packet_raptor-main/packet_raptor-main# docker-compose up [+] Running 20/20 ⠿ ollama-webui Pulled 167.2s ⠿ e1caac4eb9d2 Pull complete 12.4s ⠿ 51d1f07906b7 Pull complete 13.5s ⠿ fe87ad6b112e Pull complete 17.1s ⠿ 4d8ccb72bbad Pull complete 17.2s ⠿ 8100581c78dd Pull complete 19.2s ⠿ c175d9a7d72d Pull complete 19.3s ⠿ 118c270ec011 Pull complete 19.4s ⠿ 6ccce15a059c Pull complete 100.1s ⠿ c6580b41532d Pull complete 157.3s ⠿ d1a08afacdb5 Pull complete 160.8s ⠿ 1bdf81569536 Pull complete 163.8s ⠿ 05d1ca03afdf Pull complete 163.8s ⠿ f82115ed6cf9 Pull complete 165.6s ⠿ 500eddd4e6ab Pull complete 165.9s ⠿ 6291c7135897 Pull complete 166.0s ⠿ ollama Pulled 79.1s ⠿ 3c645031de29 Pull complete 61.4s ⠿ 2fc4741feb27 Pull complete 64.3s ⠿ 8ce449dca7ea Pull complete 77.8s [+] Building 161.8s (10/22) => [internal] load build definition from Dockerfile 0.2s => => transferring dockerfile: 1.44kB 0.1s => [internal] load metadata for docker.io/library/ubuntu:latest 1.5s => [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [ 1/17] FROM docker.io/library/ubuntu:latest@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 6.0s => => resolve docker.io/library/ubuntu:latest@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 0.0s => => sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 1.13kB / 1.13kB 0.0s => => sha256:d21429c4635332e96a4baae3169e3f02ac8e24e6ae3d89a86002d49a1259a4f7 424B / 424B 0.0s => => sha256:bf3dc08bfed031182827888bb15977e316ad797ee2ccb63b4c7a57fdfe7eb31d 2.30kB / 2.30kB 0.0s => => sha256:49b384cc7b4aa0dfd16ff7817ad0ea04f1d0a8072e62114efcd99119f8ceb9ed 28.87MB / 28.87MB 1.8s => => extracting sha256:49b384cc7b4aa0dfd16ff7817ad0ea04f1d0a8072e62114efcd99119f8ceb9ed 3.7s => [internal] load build context 0.1s => => transferring context: 26.34kB 0.1s => [ 2/17] RUN echo "==> Upgrading apk and installing system utilities ...." && apt -y update && apt-get install -y wget && apt-get -y install sudo 61.8s => [ 3/17] RUN echo "==> Installing Python3 and pip ...." && apt-get install python3 -y && apt install python3-pip -y 86.1s => [ 4/17] RUN echo "==> Install dos2unix..." && sudo apt-get install dos2unix -y 5.0s => ERROR [ 5/17] RUN echo "==> Install langchain requirements.." && pip install -U --quiet langchain_experimental langchain langchain-community && pip install chromadb && pip install tiktoken 1.1s

[ 5/17] RUN echo "==> Install langchain requirements.." && pip install -U --quiet langchain_experimental langchain langchain-community && pip install chromadb && pip install tiktoken:

12 0.469 ==> Install langchain requirements..

12 0.970 error: externally-managed-environment

12 0.970

12 0.970 × This environment is externally managed

12 0.970 ╰─> To install Python packages system-wide, try apt install

12 0.970 python3-xyz, where xyz is the package you are trying to

12 0.970 install.

12 0.970

12 0.970 If you wish to install a non-Debian-packaged Python package,

12 0.970 create a virtual environment using python3 -m venv path/to/venv.

12 0.970 Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make

12 0.970 sure you have python3-full installed.

12 0.970

12 0.970 If you wish to install a non-Debian packaged Python application,

12 0.970 it may be easiest to use pipx install xyz, which will manage a

12 0.970 virtual environment for you. Make sure you have pipx installed.

12 0.970

12 0.970 See /usr/share/doc/python3.12/README.venv for more information.

12 0.970

12 0.970 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.

12 0.970 hint: See PEP 668 for the detailed specification.


failed to solve: process "/bin/sh -c echo \"==> Install langchain requirements..\" && pip install -U --quiet langchain_experimental langchain langchain-community && pip install chromadb && pip install tiktoken" did not complete successfully: exit code: 1

automateyournetwork commented 6 months ago

Thank you yes I think the latest base Ubuntu image is enforcing virtual environments now; I put a hack fix in but it works

Thanks again I've updated all my other repos accordingly

automateyournetwork commented 6 months ago

working