yoheinakajima / babyagi

MIT License
19.64k stars 2.57k forks source link

requirements installation error in docker setup #346

Closed whatactuallyis closed 1 year ago

whatactuallyis commented 1 year ago

hey,

after a long output in [babyagi 5/7] RUN pip install -r requirements.txt, I got the following error.

#0 1776.3 ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
#0 1776.3     nvidia-cudnn-cu11==8.5.0.96 from https://files.pythonhosted.org/packages/dc/30/66d4347d6e864334da5bb1c7571305e501dcb11b9155971421bb7bb5315f/nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl (from torch>=1.6.0->sentence-transformers>=2.2.2->chromadb==0.3.21->-r requirements.txt (line 3)):
#0 1776.3         Expected sha256 402f40adfc6f418f9dae9ab402e773cfed9beae52333f6d86ae3107a1b9527e7
#0 1776.3              Got        f40268a51a472af56c9509b946bee09288ffec2efdbbcbb86cfca63cd9e3385c
#0 1776.3
------
time="2023-07-04T10:54:51+03:00" level=warning msg="buildx: failed to read current commit information with git rev-parse --is-inside-work-tree"
failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1

did anyone have a similar problem?

whatactuallyis commented 1 year ago

I happen to solve the issue by adding --no-cache to the requirements.txt installation line in Dockerfile.