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

odahu-flow-connections-resources-uploader fails with pkg_resources.ContextualVersionConflict #426

Closed
karbyshevds opened this issue Nov 11, 2020 · 2 comments
Assignees
Labels
bug Something isn't working critical refers to critical functionality or critical data. User can't perform the target action in other way

Comments

@karbyshevds
Copy link
Contributor

Describe the bug
odahu-flow-connections-resources-uploader built from current develop (01d4c30) fails with log below:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 578, in _build_master
    ws.require(__requires__)
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.26.0 (/opt/conda/lib/python3.7/site-packages), Requirement.parse('urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1'), {'requests'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/bin/odahuflowctl", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3105, in <module>
    @_call_aside
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3089, in _call_aside
    f(*args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3118, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 580, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 593, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.26.0 (/opt/conda/lib/python3.7/site-packages), Requirement.parse('urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1'), {'requests'})

To Reproduce
Steps to reproduce the behavior:

  1. Build from current develop (01d4c30)
  2. Try to deploy odahuflow via helm
  3. See that odahu-flow-connections-resources-uploader` fails with above error.

Expected behavior
success deployment of ODAHU

Actual behavior
ODAHU delopyment fails

@karbyshevds karbyshevds added bug Something isn't working critical refers to critical functionality or critical data. User can't perform the target action in other way labels Nov 11, 2020
@karbyshevds karbyshevds added this to Backlog in odahu-kanban via automation Nov 11, 2020
@karbyshevds karbyshevds moved this from Backlog to To Do in odahu-kanban Nov 11, 2020
@vlad-tokarev vlad-tokarev self-assigned this Nov 11, 2020
@vlad-tokarev
Copy link
Member

This is a problem of the requests library that limits urillib3 < 1.26 in its dependencies, but urllib3 1.26 was released yesterday. Tomorrow release of requests will fix this issue

We have both dependencies for odahu-flow-sdk
requests>=2.22.0
urllib3>=1.24.3

But unfortunately, it's not the right way to limit some of our dependencies by setting the upper bound of the version.
Because odahu-flow-sdk is not an end application but the library too. So if we fix some version we create the same problems for our users as the requests library did.

BTW new PIP resolver will be released soon and pip will be able to downgrade your installed packages to fit the full list of requirements. But for now, it is activating by --use-feature=2020-resolver

Anyway, this problem does not affect already built images with CLI

@vlad-tokarev
Copy link
Member

I created an issue for reproducible Docker image builds
#427

odahu-kanban automation moved this from To Do to In QA Nov 11, 2020
@BPylypenko BPylypenko moved this from In QA to Done in odahu-kanban Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical refers to critical functionality or critical data. User can't perform the target action in other way
Projects
odahu-kanban
  
Done
Development

No branches or pull requests

2 participants