ERROR: Could not find a version that satisfies the requirement codecov==2.1.12
OS Ubuntu:
Cannot compose docker container:
/Python-Honeypot$ docker-compose up Building ohp [+] Building 2.3s (10/10) FINISHED docker:default => [internal] load build definition from Dockerfile.api 0.0s => => transferring dockerfile: 509B 0.0s => [internal] load metadata for docker.io/library/ubuntu:20.04 0.2s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/6] FROM docker.io/library/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 0.0s => [internal] load build context 0.0s => => transferring context: 12.81kB 0.0s => CACHED [2/6] RUN apt-get -yqq update && apt-get -yqq upgrade && apt-get -yqq install --no-install-suggests --no-install-recommends apt-utils mongodb mo 0.0s => CACHED [3/6] COPY . /OWASP-Honeypot 0.0s => CACHED [4/6] WORKDIR /OWASP-Honeypot 0.0s => CACHED [5/6] RUN pip3 install -r requirements.txt 0.0s => ERROR [6/6] RUN pip3 install -r requirements-dev.txt 1.9s
[6/6] RUN pip3 install -r requirements-dev.txt: 1.564 Collecting pytest==6.2.4 1.605 Downloading pytest-6.2.4-py3-none-any.whl (280 kB) 1.732 Collecting pytest-rerunfailures==10.1 1.744 Downloading pytest_rerunfailures-10.1-py3-none-any.whl (9.7 kB) 1.804 ERROR: Could not find a version that satisfies the requirement codecov==2.1.12 (from -r requirements-dev.txt (line 3)) (from versions: 2.1.13) 1.807 ERROR: No matching distribution found for codecov==2.1.12 (from -r requirements-dev.txt (line 3))
1 warning found (use docker --debug to expand):
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 3) Dockerfile.api:21
19 | 20 | RUN pip3 install -r requirements.txt 21 | >>> RUN pip3 install -r requirements-dev.txt 22 |
ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements-dev.txt" did not complete successfully: exit code: 1
Okay, I figured out the issue. You can read through this blog and see that they have changed the codecov version to 2.1.13. I will create a PR to resolve this issue as well.