abhitatachar2000 / dockerize-chromadb

This GitHub repository showcases an example of running the Chroma DB Server in a Docker container, accessible to another service. Link to chromadb documentation: https://docs.trychroma.com/
MIT License
8 stars 9 forks source link

failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1 #4

Open akramIOT opened 7 months ago

akramIOT commented 7 months ago

@abhitatachar2000 / Abhitata, I see that there is a dependency issue with this Dockerfile and the requirements mentioned.

Error:

(New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % docker-compose up --build
[+] Building 20.5s (9/10) docker:desktop-linux => [application internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 210B 0.0s => [application internal] load metadata for docker.io/library/python:latest 1.4s => [application auth] library/python:pull token for registry-1.docker.io 0.0s => [application internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [application 1/5] FROM docker.io/library/python:latest@sha256:336461f63f4eb1100e178d5acbfea3d1a5b2a53dea88aa0f9b8482d4d02e981c 0.0s => [application internal] load build context 0.0s => => transferring context: 70B 0.0s => CACHED [application 2/5] WORKDIR /app 0.0s => CACHED [application 3/5] COPY requirements.txt /app/ 0.0s => ERROR [application 4/5] RUN pip install -r requirements.txt 19.0s

[application 4/5] RUN pip install -r requirements.txt: 2.648 Collecting aiohttp==3.9.1 (from -r requirements.txt (line 1)) 2.975 Downloading aiohttp-3.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.4 kB) 3.033 Collecting aiosignal==1.3.1 (from -r requirements.txt (line 2)) 3.053 Downloading aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB) 3.088 Collecting annotated-types==0.6.0 (from -r requirements.txt (line 3)) 3.109 Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB) 3.194 Collecting anyio==3.7.1 (from -r requirements.txt (line 4)) 3.209 Downloading anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB) 3.244 Collecting asgiref==3.7.2 (from -r requirements.txt (line 5)) 3.258 Downloading asgiref-3.7.2-py3-none-any.whl.metadata (9.2 kB) 3.381 Collecting asttokens==2.4.1 (from -r requirements.txt (line 6)) 3.399 Downloading asttokens-2.4.1-py2.py3-none-any.whl.metadata (5.2 kB) 3.430 Collecting attrs==23.1.0 (from -r requirements.txt (line 7)) 3.445 Downloading attrs-23.1.0-py3-none-any.whl.metadata (11 kB) 3.481 Collecting backoff==2.2.1 (from -r requirements.txt (line 8)) 3.498 Downloading backoff-2.2.1-py3-none-any.whl.metadata (14 kB) 3.543 Collecting bcrypt==4.1.2 (from -r requirements.txt (line 9)) 3.558 Downloading bcrypt-4.1.2-cp39-abi3-manylinux_2_28_aarch64.whl.metadata (9.5 kB) 3.598 Collecting cachetools==5.3.2 (from -r requirements.txt (line 10)) 3.627 Downloading cachetools-5.3.2-py3-none-any.whl.metadata (5.2 kB) 3.656 Collecting certifi==2023.11.17 (from -r requirements.txt (line 11)) 3.671 Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB) 3.724 Collecting charset-normalizer==3.3.2 (from -r requirements.txt (line 12)) 3.742 Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (33 kB) 3.888 Collecting Chroma==0.2.0 (from -r requirements.txt (line 13)) 3.910 Downloading Chroma-0.2.0.tar.gz (5.8 kB) 3.921 Preparing metadata (setup.py): started 4.196 Preparing metadata (setup.py): finished with status 'done' 4.237 Collecting chroma-hnswlib==0.7.3 (from -r requirements.txt (line 14)) 4.258 Downloading chroma-hnswlib-0.7.3.tar.gz (31 kB) 4.272 Installing build dependencies: started 7.758 Installing build dependencies: finished with status 'done' 7.759 Getting requirements to build wheel: started 7.984 Getting requirements to build wheel: finished with status 'done' 7.988 Preparing metadata (pyproject.toml): started 8.141 Preparing metadata (pyproject.toml): finished with status 'done' 8.194 Collecting chromadb==0.4.20 (from -r requirements.txt (line 15)) 8.218 Downloading chromadb-0.4.20-py3-none-any.whl.metadata (7.3 kB) 8.247 Collecting click==8.1.7 (from -r requirements.txt (line 16)) 8.263 Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB) 8.313 Collecting colorama==0.4.6 (from -r requirements.txt (line 17)) 8.329 Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) 8.364 Collecting coloredlogs==15.0.1 (from -r requirements.txt (line 18)) 8.380 Downloading coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB) 8.444 Collecting comm==0.2.0 (from -r requirements.txt (line 19)) 8.463 Downloading comm-0.2.0-py3-none-any.whl.metadata (3.7 kB) 8.515 Collecting contourpy==1.2.0 (from -r requirements.txt (line 20)) 8.612 Downloading contourpy-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.8 kB) 8.639 Collecting cycler==0.12.1 (from -r requirements.txt (line 21)) 8.655 Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB) 8.695 Collecting dataclasses-json==0.6.3 (from -r requirements.txt (line 22)) 8.715 Downloading dataclasses_json-0.6.3-py3-none-any.whl.metadata (25 kB) 8.804 Collecting debugpy==1.8.0 (from -r requirements.txt (line 23)) 8.823 Downloading debugpy-1.8.0-py2.py3-none-any.whl.metadata (1.1 kB) 8.854 Collecting decorator==5.1.1 (from -r requirements.txt (line 24)) 8.872 Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB) 8.920 Collecting Deprecated==1.2.14 (from -r requirements.txt (line 25)) 8.935 Downloading Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB) 8.966 Collecting distro==1.8.0 (from -r requirements.txt (line 26)) 8.981 Downloading distro-1.8.0-py3-none-any.whl.metadata (6.9 kB) 9.009 Collecting executing==2.0.1 (from -r requirements.txt (line 27)) 9.025 Downloading executing-2.0.1-py2.py3-none-any.whl.metadata (9.0 kB) 9.144 Collecting faiss-cpu==1.7.4 (from -r requirements.txt (line 28)) 9.168 Downloading faiss-cpu-1.7.4.tar.gz (57 kB) 9.179 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.4/57.4 kB 6.1 MB/s eta 0:00:00 9.193 Installing build dependencies: started 12.70 Installing build dependencies: finished with status 'done' 12.70 Getting requirements to build wheel: started 12.97 Getting requirements to build wheel: finished with status 'done' 12.98 Preparing metadata (pyproject.toml): started 13.06 Preparing metadata (pyproject.toml): finished with status 'done' 13.10 Collecting fastapi==0.105.0 (from -r requirements.txt (line 29)) 13.12 Downloading fastapi-0.105.0-py3-none-any.whl.metadata (24 kB) 13.15 Collecting filelock==3.13.1 (from -r requirements.txt (line 30)) 13.16 Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB) 13.19 Collecting flatbuffers==23.5.26 (from -r requirements.txt (line 31)) 13.21 Downloading flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes) 13.27 Collecting fonttools==4.46.0 (from -r requirements.txt (line 32)) 13.34 Downloading fonttools-4.46.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (156 kB) 13.35 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.2/156.2 kB 9.8 MB/s eta 0:00:00 13.40 Collecting frozenlist==1.4.1 (from -r requirements.txt (line 33)) 13.42 Downloading frozenlist-1.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (12 kB) 13.46 Collecting fsspec==2023.12.2 (from -r requirements.txt (line 34)) 13.47 Downloading fsspec-2023.12.2-py3-none-any.whl.metadata (6.8 kB) 13.52 Collecting google-auth==2.25.2 (from -r requirements.txt (line 35)) 13.54 Downloading google_auth-2.25.2-py2.py3-none-any.whl.metadata (4.7 kB) 13.57 Collecting googleapis-common-protos==1.62.0 (from -r requirements.txt (line 36)) 13.58 Downloading googleapis_common_protos-1.62.0-py2.py3-none-any.whl.metadata (1.5 kB) 13.66 Collecting greenlet==3.0.2 (from -r requirements.txt (line 37)) 13.67 Downloading greenlet-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.7 kB) 13.94 Collecting grpcio==1.60.0 (from -r requirements.txt (line 38)) 13.96 Downloading grpcio-1.60.0-cp312-cp312-manylinux_2_17_aarch64.whl.metadata (4.0 kB) 13.98 Collecting h11==0.14.0 (from -r requirements.txt (line 39)) 14.00 Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB) 14.03 Collecting httpcore==1.0.2 (from -r requirements.txt (line 40)) 14.05 Downloading httpcore-1.0.2-py3-none-any.whl.metadata (20 kB) 14.08 Collecting httptools==0.6.1 (from -r requirements.txt (line 41)) 14.10 Downloading httptools-0.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.6 kB) 14.14 Collecting httpx==0.25.2 (from -r requirements.txt (line 42)) 14.16 Downloading httpx-0.25.2-py3-none-any.whl.metadata (6.9 kB) 14.19 Collecting huggingface-hub==0.19.4 (from -r requirements.txt (line 43)) 14.20 Downloading huggingface_hub-0.19.4-py3-none-any.whl.metadata (14 kB) 14.24 Collecting humanfriendly==10.0 (from -r requirements.txt (line 44)) 14.26 Downloading humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB) 14.28 Collecting idna==3.6 (from -r requirements.txt (line 45)) 14.38 Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB) 14.43 Collecting importlib-metadata==6.11.0 (from -r requirements.txt (line 46)) 14.45 Downloading importlib_metadata-6.11.0-py3-none-any.whl.metadata (4.9 kB) 14.49 Collecting importlib-resources==6.1.1 (from -r requirements.txt (line 47)) 14.51 Downloading importlib_resources-6.1.1-py3-none-any.whl.metadata (4.1 kB) 14.55 Collecting ipykernel==6.27.1 (from -r requirements.txt (line 48)) 14.57 Downloading ipykernel-6.27.1-py3-none-any.whl.metadata (6.3 kB) 14.61 Collecting ipython==8.18.1 (from -r requirements.txt (line 49)) 14.63 Downloading ipython-8.18.1-py3-none-any.whl.metadata (6.0 kB) 14.66 Collecting jedi==0.19.1 (from -r requirements.txt (line 50)) 14.68 Downloading jedi-0.19.1-py2.py3-none-any.whl.metadata (22 kB) 14.71 Collecting joblib==1.3.2 (from -r requirements.txt (line 51)) 14.73 Downloading joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB) 14.75 Collecting jsonpatch==1.33 (from -r requirements.txt (line 52)) 14.77 Downloading jsonpatch-1.33-py2.py3-none-any.whl.metadata (3.0 kB) 14.80 Collecting jsonpointer==2.4 (from -r requirements.txt (line 53)) 14.89 Downloading jsonpointer-2.4-py2.py3-none-any.whl.metadata (2.5 kB) 14.94 Collecting jupyter_client==8.6.0 (from -r requirements.txt (line 54)) 14.96 Downloading jupyter_client-8.6.0-py3-none-any.whl.metadata (8.3 kB) 15.00 Collecting jupyter_core==5.5.0 (from -r requirements.txt (line 55)) 15.01 Downloading jupyter_core-5.5.0-py3-none-any.whl.metadata (3.4 kB) 15.06 Collecting kiwisolver==1.4.5 (from -r requirements.txt (line 56)) 15.07 Downloading kiwisolver-1.4.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (6.4 kB) 15.11 Collecting kubernetes==28.1.0 (from -r requirements.txt (line 57)) 15.12 Downloading kubernetes-28.1.0-py2.py3-none-any.whl.metadata (1.5 kB) 15.19 Collecting langchain==0.0.350 (from -r requirements.txt (line 58)) 15.22 Downloading langchain-0.0.350-py3-none-any.whl.metadata (13 kB) 15.25 Collecting langchain-community==0.0.3 (from -r requirements.txt (line 59)) 15.26 Downloading langchain_community-0.0.3-py3-none-any.whl.metadata (7.0 kB) 15.29 Collecting langchain-core==0.1.1 (from -r requirements.txt (line 60)) 15.31 Downloading langchain_core-0.1.1-py3-none-any.whl.metadata (4.0 kB) 15.45 Collecting langsmith==0.0.71 (from -r requirements.txt (line 61)) 15.47 Downloading langsmith-0.0.71-py3-none-any.whl.metadata (10 kB) 15.50 Collecting lark==1.1.8 (from -r requirements.txt (line 62)) 15.52 Downloading lark-1.1.8-py3-none-any.whl.metadata (1.9 kB) 15.57 Collecting marshmallow==3.20.1 (from -r requirements.txt (line 63)) 15.58 Downloading marshmallow-3.20.1-py3-none-any.whl.metadata (7.8 kB) 15.70 Collecting matplotlib==3.8.2 (from -r requirements.txt (line 64)) 15.72 Downloading matplotlib-3.8.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.8 kB) 15.75 Collecting matplotlib-inline==0.1.6 (from -r requirements.txt (line 65)) 15.77 Downloading matplotlib_inline-0.1.6-py3-none-any.whl.metadata (2.8 kB) 15.81 Collecting mmh3==4.0.1 (from -r requirements.txt (line 66)) 15.83 Downloading mmh3-4.0.1.tar.gz (28 kB) 15.84 Installing build dependencies: started 16.59 Installing build dependencies: finished with status 'done' 16.59 Getting requirements to build wheel: started 16.71 Getting requirements to build wheel: finished with status 'done' 16.71 Preparing metadata (pyproject.toml): started 16.82 Preparing metadata (pyproject.toml): finished with status 'done' 16.85 Collecting monotonic==1.6 (from -r requirements.txt (line 67)) 16.86 Downloading monotonic-1.6-py2.py3-none-any.whl.metadata (1.5 kB) 16.89 Collecting mpmath==1.3.0 (from -r requirements.txt (line 68)) 16.99 Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB) 17.10 Collecting multidict==6.0.4 (from -r requirements.txt (line 69)) 17.11 Downloading multidict-6.0.4.tar.gz (51 kB) 17.12 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 kB 18.3 MB/s eta 0:00:00 17.13 Installing build dependencies: started 17.83 Installing build dependencies: finished with status 'done' 17.83 Getting requirements to build wheel: started 17.91 Getting requirements to build wheel: finished with status 'done' 17.91 Installing backend dependencies: started 18.23 Installing backend dependencies: finished with status 'done' 18.23 Preparing metadata (pyproject.toml): started 18.32 Preparing metadata (pyproject.toml): finished with status 'done' 18.34 Collecting mypy-extensions==1.0.0 (from -r requirements.txt (line 70)) 18.36 Downloading mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB) 18.39 Collecting nest-asyncio==1.5.8 (from -r requirements.txt (line 71)) 18.41 Downloading nest_asyncio-1.5.8-py3-none-any.whl.metadata (2.8 kB) 18.50 Collecting numpy==1.26.2 (from -r requirements.txt (line 72)) 18.50 Using cached numpy-1.26.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (62 kB) 18.58 Collecting oauthlib==3.2.2 (from -r requirements.txt (line 73)) 18.59 Downloading oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB) 18.65 ERROR: Ignored the following versions that require a different python version: 0.5.12 Requires-Python >=3.7,<3.12; 0.5.13 Requires-Python >=3.7,<3.12; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 18.65 ERROR: Could not find a version that satisfies the requirement onnxruntime==1.16.3 (from versions: 1.17.0, 1.17.1) 18.65 ERROR: No matching distribution found for onnxruntime==1.16.3

failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1 (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % docker-compose up --build
[+] Building 21.7s (10/11) docker:desktop-linux => [application internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 361B 0.0s => [application internal] load metadata for docker.io/library/python:latest 1.3s => [application auth] library/python:pull token for registry-1.docker.io 0.0s => [application internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [application 1/6] FROM docker.io/library/python:latest@sha256:336461f63f4eb1100e178d5acbfea3d1a5b2a53dea88aa0f9b8482d4d02e981c 0.0s => [application internal] load build context 0.0s => => transferring context: 70B 0.0s => CACHED [application 2/6] WORKDIR /app 0.0s => CACHED [application 3/6] COPY requirements.txt /app/ 0.0s => [application 4/6] RUN apt-get update && apt-get install -y libpq-dev build-essential 2.7s => ERROR [application 5/6] RUN pip install --no-cache-dir -r requirements.txt 17.7s

[application 5/6] RUN pip install --no-cache-dir -r requirements.txt: 1.611 Collecting aiohttp==3.9.1 (from -r requirements.txt (line 1)) 1.758 Downloading aiohttp-3.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.4 kB) 1.782 Collecting aiosignal==1.3.1 (from -r requirements.txt (line 2)) 1.799 Downloading aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB) 1.821 Collecting annotated-types==0.6.0 (from -r requirements.txt (line 3)) 1.837 Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB) 1.868 Collecting anyio==3.7.1 (from -r requirements.txt (line 4)) 1.883 Downloading anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB) 1.917 Collecting asgiref==3.7.2 (from -r requirements.txt (line 5)) 1.936 Downloading asgiref-3.7.2-py3-none-any.whl.metadata (9.2 kB) 1.965 Collecting asttokens==2.4.1 (from -r requirements.txt (line 6)) 1.980 Downloading asttokens-2.4.1-py2.py3-none-any.whl.metadata (5.2 kB) 2.010 Collecting attrs==23.1.0 (from -r requirements.txt (line 7)) 2.025 Downloading attrs-23.1.0-py3-none-any.whl.metadata (11 kB) 2.079 Collecting backoff==2.2.1 (from -r requirements.txt (line 8)) 2.192 Downloading backoff-2.2.1-py3-none-any.whl.metadata (14 kB) 2.249 Collecting bcrypt==4.1.2 (from -r requirements.txt (line 9)) 2.288 Downloading bcrypt-4.1.2-cp39-abi3-manylinux_2_28_aarch64.whl.metadata (9.5 kB) 2.341 Collecting cachetools==5.3.2 (from -r requirements.txt (line 10)) 2.359 Downloading cachetools-5.3.2-py3-none-any.whl.metadata (5.2 kB) 2.394 Collecting certifi==2023.11.17 (from -r requirements.txt (line 11)) 2.412 Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB) 2.460 Collecting charset-normalizer==3.3.2 (from -r requirements.txt (line 12)) 2.476 Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (33 kB) 2.578 Collecting Chroma==0.2.0 (from -r requirements.txt (line 13)) 2.594 Downloading Chroma-0.2.0.tar.gz (5.8 kB) 2.596 Preparing metadata (setup.py): started 2.813 Preparing metadata (setup.py): finished with status 'done' 2.836 Collecting chroma-hnswlib==0.7.3 (from -r requirements.txt (line 14)) 2.852 Downloading chroma-hnswlib-0.7.3.tar.gz (31 kB) 2.860 Installing build dependencies: started 6.128 Installing build dependencies: finished with status 'done' 6.129 Getting requirements to build wheel: started 6.275 Getting requirements to build wheel: finished with status 'done' 6.279 Preparing metadata (pyproject.toml): started 6.426 Preparing metadata (pyproject.toml): finished with status 'done' 6.452 Collecting chromadb==0.4.20 (from -r requirements.txt (line 15)) 6.491 Downloading chromadb-0.4.20-py3-none-any.whl.metadata (7.3 kB) 6.517 Collecting click==8.1.7 (from -r requirements.txt (line 16)) 6.531 Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB) 6.557 Collecting colorama==0.4.6 (from -r requirements.txt (line 17)) 6.571 Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) 6.616 Collecting coloredlogs==15.0.1 (from -r requirements.txt (line 18)) 6.632 Downloading coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB) 6.655 Collecting comm==0.2.0 (from -r requirements.txt (line 19)) 6.673 Downloading comm-0.2.0-py3-none-any.whl.metadata (3.7 kB) 6.758 Collecting contourpy==1.2.0 (from -r requirements.txt (line 20)) 6.775 Downloading contourpy-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.8 kB) 6.796 Collecting cycler==0.12.1 (from -r requirements.txt (line 21)) 6.811 Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB) 6.937 Collecting dataclasses-json==0.6.3 (from -r requirements.txt (line 22)) 6.955 Downloading dataclasses_json-0.6.3-py3-none-any.whl.metadata (25 kB) 7.032 Collecting debugpy==1.8.0 (from -r requirements.txt (line 23)) 7.047 Downloading debugpy-1.8.0-py2.py3-none-any.whl.metadata (1.1 kB) 7.072 Collecting decorator==5.1.1 (from -r requirements.txt (line 24)) 7.087 Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB) 7.111 Collecting Deprecated==1.2.14 (from -r requirements.txt (line 25)) 7.127 Downloading Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB) 7.148 Collecting distro==1.8.0 (from -r requirements.txt (line 26)) 7.167 Downloading distro-1.8.0-py3-none-any.whl.metadata (6.9 kB) 7.211 Collecting executing==2.0.1 (from -r requirements.txt (line 27)) 7.227 Downloading executing-2.0.1-py2.py3-none-any.whl.metadata (9.0 kB) 7.349 Collecting faiss-cpu==1.7.4 (from -r requirements.txt (line 28)) 7.446 Downloading faiss-cpu-1.7.4.tar.gz (57 kB) 7.453 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.4/57.4 kB 87.0 MB/s eta 0:00:00 7.473 Installing build dependencies: started 11.10 Installing build dependencies: finished with status 'done' 11.10 Getting requirements to build wheel: started 11.18 Getting requirements to build wheel: finished with status 'done' 11.19 Preparing metadata (pyproject.toml): started 11.27 Preparing metadata (pyproject.toml): finished with status 'done' 11.31 Collecting fastapi==0.105.0 (from -r requirements.txt (line 29)) 11.32 Downloading fastapi-0.105.0-py3-none-any.whl.metadata (24 kB) 11.37 Collecting filelock==3.13.1 (from -r requirements.txt (line 30)) 11.39 Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB) 11.41 Collecting flatbuffers==23.5.26 (from -r requirements.txt (line 31)) 11.42 Downloading flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes) 11.48 Collecting fonttools==4.46.0 (from -r requirements.txt (line 32)) 11.64 Downloading fonttools-4.46.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (156 kB) 11.65 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.2/156.2 kB 12.3 MB/s eta 0:00:00 11.72 Collecting frozenlist==1.4.1 (from -r requirements.txt (line 33)) 11.73 Downloading frozenlist-1.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (12 kB) 11.76 Collecting fsspec==2023.12.2 (from -r requirements.txt (line 34)) 11.77 Downloading fsspec-2023.12.2-py3-none-any.whl.metadata (6.8 kB) 11.84 Collecting google-auth==2.25.2 (from -r requirements.txt (line 35)) 11.85 Downloading google_auth-2.25.2-py2.py3-none-any.whl.metadata (4.7 kB) 11.89 Collecting googleapis-common-protos==1.62.0 (from -r requirements.txt (line 36)) 11.90 Downloading googleapis_common_protos-1.62.0-py2.py3-none-any.whl.metadata (1.5 kB) 12.02 Collecting greenlet==3.0.2 (from -r requirements.txt (line 37)) 12.04 Downloading greenlet-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.7 kB) 12.38 Collecting grpcio==1.60.0 (from -r requirements.txt (line 38)) 12.39 Downloading grpcio-1.60.0-cp312-cp312-manylinux_2_17_aarch64.whl.metadata (4.0 kB) 12.41 Collecting h11==0.14.0 (from -r requirements.txt (line 39)) 12.43 Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB) 12.48 Collecting httpcore==1.0.2 (from -r requirements.txt (line 40)) 12.50 Downloading httpcore-1.0.2-py3-none-any.whl.metadata (20 kB) 12.54 Collecting httptools==0.6.1 (from -r requirements.txt (line 41)) 12.55 Downloading httptools-0.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.6 kB) 12.58 Collecting httpx==0.25.2 (from -r requirements.txt (line 42)) 12.67 Downloading httpx-0.25.2-py3-none-any.whl.metadata (6.9 kB) 12.72 Collecting huggingface-hub==0.19.4 (from -r requirements.txt (line 43)) 12.73 Downloading huggingface_hub-0.19.4-py3-none-any.whl.metadata (14 kB) 12.76 Collecting humanfriendly==10.0 (from -r requirements.txt (line 44)) 12.78 Downloading humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB) 12.80 Collecting idna==3.6 (from -r requirements.txt (line 45)) 12.82 Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB) 12.87 Collecting importlib-metadata==6.11.0 (from -r requirements.txt (line 46)) 12.88 Downloading importlib_metadata-6.11.0-py3-none-any.whl.metadata (4.9 kB) 12.91 Collecting importlib-resources==6.1.1 (from -r requirements.txt (line 47)) 12.93 Downloading importlib_resources-6.1.1-py3-none-any.whl.metadata (4.1 kB) 12.97 Collecting ipykernel==6.27.1 (from -r requirements.txt (line 48)) 12.99 Downloading ipykernel-6.27.1-py3-none-any.whl.metadata (6.3 kB) 13.03 Collecting ipython==8.18.1 (from -r requirements.txt (line 49)) 13.04 Downloading ipython-8.18.1-py3-none-any.whl.metadata (6.0 kB) 13.07 Collecting jedi==0.19.1 (from -r requirements.txt (line 50)) 13.09 Downloading jedi-0.19.1-py2.py3-none-any.whl.metadata (22 kB) 13.11 Collecting joblib==1.3.2 (from -r requirements.txt (line 51)) 13.21 Downloading joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB) 13.24 Collecting jsonpatch==1.33 (from -r requirements.txt (line 52)) 13.25 Downloading jsonpatch-1.33-py2.py3-none-any.whl.metadata (3.0 kB) 13.28 Collecting jsonpointer==2.4 (from -r requirements.txt (line 53)) 13.30 Downloading jsonpointer-2.4-py2.py3-none-any.whl.metadata (2.5 kB) 13.35 Collecting jupyter_client==8.6.0 (from -r requirements.txt (line 54)) 13.37 Downloading jupyter_client-8.6.0-py3-none-any.whl.metadata (8.3 kB) 13.40 Collecting jupyter_core==5.5.0 (from -r requirements.txt (line 55)) 13.42 Downloading jupyter_core-5.5.0-py3-none-any.whl.metadata (3.4 kB) 13.46 Collecting kiwisolver==1.4.5 (from -r requirements.txt (line 56)) 13.48 Downloading kiwisolver-1.4.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (6.4 kB) 13.51 Collecting kubernetes==28.1.0 (from -r requirements.txt (line 57)) 13.53 Downloading kubernetes-28.1.0-py2.py3-none-any.whl.metadata (1.5 kB) 13.61 Collecting langchain==0.0.350 (from -r requirements.txt (line 58)) 13.62 Downloading langchain-0.0.350-py3-none-any.whl.metadata (13 kB) 13.73 Collecting langchain-community==0.0.3 (from -r requirements.txt (line 59)) 13.75 Downloading langchain_community-0.0.3-py3-none-any.whl.metadata (7.0 kB) 13.78 Collecting langchain-core==0.1.1 (from -r requirements.txt (line 60)) 13.80 Downloading langchain_core-0.1.1-py3-none-any.whl.metadata (4.0 kB) 13.85 Collecting langsmith==0.0.71 (from -r requirements.txt (line 61)) 13.86 Downloading langsmith-0.0.71-py3-none-any.whl.metadata (10 kB) 13.89 Collecting lark==1.1.8 (from -r requirements.txt (line 62)) 13.90 Downloading lark-1.1.8-py3-none-any.whl.metadata (1.9 kB) 13.95 Collecting marshmallow==3.20.1 (from -r requirements.txt (line 63)) 13.97 Downloading marshmallow-3.20.1-py3-none-any.whl.metadata (7.8 kB) 14.07 Collecting matplotlib==3.8.2 (from -r requirements.txt (line 64)) 14.09 Downloading matplotlib-3.8.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.8 kB) 14.12 Collecting matplotlib-inline==0.1.6 (from -r requirements.txt (line 65)) 14.13 Downloading matplotlib_inline-0.1.6-py3-none-any.whl.metadata (2.8 kB) 14.16 Collecting mmh3==4.0.1 (from -r requirements.txt (line 66)) 14.26 Downloading mmh3-4.0.1.tar.gz (28 kB) 14.27 Installing build dependencies: started 15.07 Installing build dependencies: finished with status 'done' 15.07 Getting requirements to build wheel: started 15.20 Getting requirements to build wheel: finished with status 'done' 15.20 Preparing metadata (pyproject.toml): started 15.30 Preparing metadata (pyproject.toml): finished with status 'done' 15.32 Collecting monotonic==1.6 (from -r requirements.txt (line 67)) 15.33 Downloading monotonic-1.6-py2.py3-none-any.whl.metadata (1.5 kB) 15.36 Collecting mpmath==1.3.0 (from -r requirements.txt (line 68)) 15.38 Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB) 15.47 Collecting multidict==6.0.4 (from -r requirements.txt (line 69)) 15.48 Downloading multidict-6.0.4.tar.gz (51 kB) 15.49 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 kB 44.2 MB/s eta 0:00:00 15.50 Installing build dependencies: started 16.22 Installing build dependencies: finished with status 'done' 16.22 Getting requirements to build wheel: started 16.38 Getting requirements to build wheel: finished with status 'done' 16.38 Installing backend dependencies: started 16.79 Installing backend dependencies: finished with status 'done' 16.79 Preparing metadata (pyproject.toml): started 16.88 Preparing metadata (pyproject.toml): finished with status 'done' 16.90 Collecting mypy-extensions==1.0.0 (from -r requirements.txt (line 70)) 16.91 Downloading mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB) 16.95 Collecting nest-asyncio==1.5.8 (from -r requirements.txt (line 71)) 16.96 Downloading nest_asyncio-1.5.8-py3-none-any.whl.metadata (2.8 kB) 17.07 Collecting numpy==1.26.2 (from -r requirements.txt (line 72)) 17.08 Downloading numpy-1.26.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (62 kB) 17.08 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 79.0 MB/s eta 0:00:00 17.12 Collecting oauthlib==3.2.2 (from -r requirements.txt (line 73)) 17.13 Downloading oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB) 17.18 ERROR: Ignored the following versions that require a different python version: 0.5.12 Requires-Python >=3.7,<3.12; 0.5.13 Requires-Python >=3.7,<3.12; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 17.18 ERROR: Could not find a version that satisfies the requirement onnxruntime==1.16.3 (from versions: 1.17.0, 1.17.1) 17.18 ERROR: No matching distribution found for onnxruntime==1.16.3

failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1 (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG %

2) I am using your requirements.txt file only*. I fixed the onnyxruntime dependency issues with the Conda based installation of the dependency but the other issue is still there.

Python 3.11 version on MACOS M2 system. I did change the base python version in the Dockerfile and tried to execute to get the same error eventually as per above.

akramIOT commented 7 months ago

Both the Dockerfile versions below fail with the same Error.

1st version:

FROM python:3.11.7 WORKDIR /app COPY requirements.txt /app/

RUN pip install -r requirements.txt COPY Advanced-RAG /app/ CMD ["python", "chroma_VDB_client.py"]

EXPOSE 8000

2nd version:

FROM python:3.11.7 WORKDIR /app COPY requirements.txt /app/

Install core dependencies.

RUN apt-get update && apt-get install -y libpq-dev build-essential

RUN pip install --no-cache-dir -r requirements.txt

RUN pip install -r requirements.txt

COPY Advanced-RAG /app/ CMD ["python", "chroma_VDB_client.py"]

EXPOSE 8000