cloudmapper icon indicating copy to clipboard operation
cloudmapper copied to clipboard

Conflicting python package versions since dependabot commit

Open bentefay opened this issue 3 years ago • 6 comments

Running docker build -t cloudmapper . as per the README currently yields the following error:

ERROR: Cannot install -r requirements.txt (line 5) and urllib3==1.26.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested urllib3==1.26.5
    botocore 1.17.6 depends on urllib3<1.26 and >=1.20; python_version != "3.4"

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

This commit from dependabot appears to have created the problem: https://github.com/duo-labs/cloudmapper/commit/97e0ebcbd7498c3b2beaeeccebc9bbf8171232a1

Editing requirements.txt and setting the urlib version back fixes the problem: urllib3==1.25.9

bentefay avatar Jun 09 '21 00:06 bentefay

Same

mladjen avatar Jun 09 '21 01:06 mladjen

Same here

ERROR: requests 2.22.0 has requirement urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1, but you'll have urllib3 1.26.5 which is incompatible. ERROR: botocore 1.17.6 has requirement urllib3<1.26,>=1.20; python_version != "3.4", but you'll have urllib3 1.26.5 which is incompatible.

ebellavance avatar Jun 14 '21 13:06 ebellavance

What if we upgrade requests and botocore dependencies so they can admit the new version of urllib3 ?

w0rmr1d3r avatar Jun 17 '21 17:06 w0rmr1d3r

Same issue here.

@w0rmr1d3r urllib3==1.25.11 works

don't you worry @cajual , already exists a PR to fix this, however, it needs to be reviewed and merged -> https://github.com/duo-labs/cloudmapper/pull/876 That way, we don't need to downgrade a dependency

w0rmr1d3r avatar Jun 29 '21 06:06 w0rmr1d3r

try to not explicit the version of urllib3, from your requirements.txt ... Flask=3.0.1 urllib3 ...

petatemarvin26 avatar Apr 02 '22 19:04 petatemarvin26