Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib3 version error while installing #3037

Closed
lastbulletbender opened this issue Nov 12, 2020 · 5 comments
Closed

urllib3 version error while installing #3037

lastbulletbender opened this issue Nov 12, 2020 · 5 comments

Comments

@lastbulletbender
Copy link

Getting the following error while running setup

�[91merror: urllib3 1.26.1 is installed but urllib3<1.26,>=1.25.4 is required by {'botocore'}
�[0mThe command '/bin/sh -c python setup.py install' returned a non-zero code: 1

urllib3 version 1.26.1 and 1.26.0 were released recently.

Pinning urllib3<1.26 in setup.py fixes the build, but I am not sure why it says that botocore requires those versions (as botocore/boto3 new versions were released as well)

I can paste the complete setup output if needed.

@ocofaigh
Copy link

Also seeing this:

Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master
  ws.require(__requires__)
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require
  needed = self.resolve(parse_requirements(requirements))
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 779, in resolve
  raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.26.1 (/usr/local/lib/python3.6/site-packages), Requirement.parse('urllib3<1.26,>=1.25.4; python_version != "3.4"'), {'botocore'})

We worked around it by pinning urllib3==1.25.11

@lastbulletbender
Copy link
Author

Is it possible that this needs to be updated on botocore? https://github.com/boto/botocore/blob/1.19.16/setup.cfg

I don't understand setuptools, so this is just a shot in the dark

@lastbulletbender
Copy link
Author

The botocore wheel is being downloaded has incorrect version in metadata.json

botocore-1.19.16-py2.py3-none-any.whl

"run_requires": [
    {
        "environment": "python_version!='3.4'",
        "requires": [
            "urllib3>=1.25.4,<1.26"
        ]
    },
    {
        "requires": [
            "python-dateutil>=2.1,<3.0.0",
            "jmespath>=0.7.1,<1.0.0"
        ]
    },
    {
        "environment": "python_version=='3.4'",
        "requires": [
            "urllib3>=1.25.4,<1.25.8"
        ]
    }
],

@lastbulletbender
Copy link
Author

This has fixed the issue for me boto/botocore@df13894

@ocofaigh Can you check if the issue is resolved for you? Else I'll close the issue.

@ocofaigh
Copy link

ocofaigh commented Nov 13, 2020

Yes fixed for us. Thanks. You can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants