Docker and docker-compose have wrong "requests" library version

#148 · closed · 4 comments

View on GitHub ↗

frankvoelker

``` ... 1.545 Best match: requests 2.32.4 1.545 Processing requests-2.32.4.tar.gz 1.568 Writing /tmp/easy_install-V25KXY/requests-2.32.4/setup.cfg 1.568 Running requests-2.32.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-V25KXY/requests-2.32.4/egg-dist-tmp-4TISwW 1.619 1.619 ========================== 1.619 Unsupported Python version 1.619 ========================== 1.619 This version of Requests requires at least Python 3.8, but 1.619 you're trying to install it on Python 2.7. To resolve this, 1.619 consider upgrading to a supported Python version. 1.619 1.619 If you can't upgrade your Python version, you'll need to 1.619 pin to an older version of Requests (<2.32.0). 1.621 error: Setup script exited with 1 ------ Dockerfile:11 -------------------- 9 | WORKDIR /root/NoSqlMap 10 | 11 | >>> RUN python setup.py install 12 | 13 | RUN python -m pip install 'requests<=2.20.0' 'certifi<=2020.4.5.1' -------------------- ERROR: failed to solve: process "/bin/sh -c python setup.py install" did not complete successfully: exit code: 1 ```

Comments

frankvoelker

> exit and delait for app or failed what?

github-actions[bot]

Stale issue message

egongu90

Still broken, requests need to be downgraded to 2.20.0 or build breaks since newer version is not python2 compatible. Also, side note for others trying to make it work, update on the dockerfile adding a checkout to the working commit ``` WORKDIR /root/NoSqlMap RUN git checkout efe6f7a62a6d9b2f934704060b2d3f273477bfb0 RUN python setup.py install ```

dkegel-fastly

fixed in master