Santandersecurityresearch / asvs

A simple web app that helps developers understand the ASVS requirements.
MIT License
154 stars 39 forks source link

executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1 #62

Closed braaqwesi closed 1 year ago

braaqwesi commented 1 year ago

=> ERROR [ 9/11] RUN pip3 install -r requirements.txt executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1

asvs git:(master) docker build -t asvs . [+] Building 4.5s (13/15) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/alpine:latest 0.8s => [internal] load build context 0.0s => => transferring context: 8.43kB 0.0s => [ 1/11] FROM docker.io/library/alpine:latest@sha256:8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4 0.0s => CACHED [ 2/11] RUN apk add --no-cache python3 && python3 -m ensurepip && pip3 install --upgrade pip setuptools && if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && if [[ ! -e /usr/bin 0.0s => CACHED [ 3/11] COPY . /app 0.0s => CACHED [ 4/11] WORKDIR /app 0.0s => CACHED [ 5/11] RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev postgresql-libs zlib-dev jpeg-dev 0.0s => CACHED [ 6/11] RUN apk update 0.0s => CACHED [ 7/11] RUN apk add postgresql zlib jpeg 0.0s => CACHED [ 8/11] RUN pip install psycopg2 Pillow 0.0s => ERROR [ 9/11] RUN pip3 install -r requirements.txt 3.6s

[ 9/11] RUN pip3 install -r requirements.txt:

13 0.708 Collecting django

13 1.291 Downloading Django-4.1.3-py3-none-any.whl (8.1 MB)

13 2.191 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.1/8.1 MB 9.1 MB/s eta 0:00:00

13 2.262 Collecting django-crispy-forms

13 2.363 Downloading django_crispy_forms-1.14.0-py3-none-any.whl (133 kB)

13 2.371 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.3/133.3 kB 24.9 MB/s eta 0:00:00

13 2.542 Collecting reportlab

13 2.651 Downloading reportlab-3.6.12.tar.gz (4.5 MB)

13 2.878 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 20.2 MB/s eta 0:00:00

13 3.277 Preparing metadata (setup.py): started

13 3.501 Preparing metadata (setup.py): finished with status 'error'

13 3.506 error: subprocess-exited-with-error

13 3.506

13 3.506 × python setup.py egg_info did not run successfully.

13 3.506 │ exit code: 1

13 3.506 ╰─> [10 lines of output]

13 3.506 ##### setup-python-3.10.8-linux-x86_64: ================================================

13 3.506 ##### setup-python-3.10.8-linux-x86_64: Attempting build of _rl_accel

13 3.506 ##### setup-python-3.10.8-linux-x86_64: extensions from 'src/rl_addons/rl_accel'

13 3.506 ##### setup-python-3.10.8-linux-x86_64: ================================================

13 3.506 ##### setup-python-3.10.8-linux-x86_64: ===================================================

13 3.506 ##### setup-python-3.10.8-linux-x86_64: Attempting build of _renderPM

13 3.506 ##### setup-python-3.10.8-linux-x86_64: extensions from 'src/rl_addons/renderPM'

13 3.506 ##### setup-python-3.10.8-linux-x86_64: ===================================================

13 3.506 ##### setup-python-3.10.8-linux-x86_64: will use package libart 2.3.21

13 3.506 !!!!! cannot find ft2build.h

13 3.506 [end of output]

13 3.506

13 3.506 note: This error originates from a subprocess, and is likely not a problem with pip.

13 3.508 error: metadata-generation-failed

13 3.508

13 3.508 × Encountered error while generating package metadata.

13 3.508 ╰─> See above for output.

13 3.508

13 3.508 note: This is an issue with the package mentioned above, not pip.

13 3.508 hint: See above for details.


executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1

EnriqueHormilla commented 1 year ago

Same here!! @braaqwesi I fixed and created a PR with the workaround. I hope work for you to. Check here:

63

braaqwesi commented 1 year ago

it works 100%

[+] Building 430.5s (17/17) FINISHED

danielcuthbert commented 1 year ago

Thanks @EnriqueHormilla and @braaqwesi, I've accepted the PR and merged it and all seems good. Appreciate the help making this better.