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

Contextual version conflict with direct dependency wrapt #755

Closed
sphuber opened this issue Feb 19, 2020 · 0 comments · Fixed by #756
Closed

Contextual version conflict with direct dependency wrapt #755

sphuber opened this issue Feb 19, 2020 · 0 comments · Fixed by #756

Comments

@sphuber
Copy link

sphuber commented Feb 19, 2020

Steps to reproduce

  1. Install package with wrapt==1.12 and astroid==2.4.0

Current behavior

Installing this, or running prospector with these dependencies will lead to a contextual version conflict because astroid specifies a very restrictive requirement wrapt==1.11.* which is not compatible:

prospector...............................................................Failed
hookid: prospector

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (wrapt 1.12.0 (/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages), Requirement.parse('wrapt==1.11.*'), {'astroid'})

Expected behavior

The ability to install astroid with wrapt>=1.12

python -c "from astroid import __pkginfo__; print(__pkginfo__.version)" output

2.4.0

michael-k added a commit to michael-k/astroid that referenced this issue Feb 21, 2020
michael-k added a commit to michael-k/astroid that referenced this issue Feb 21, 2020
michael-k added a commit to michael-k/astroid that referenced this issue Feb 21, 2020
PCManticore pushed a commit that referenced this issue Feb 27, 2020
openstack-mirroring pushed a commit to openstack/neutron that referenced this issue Dec 9, 2020
Bump astroid test requirement to 2.4.0
Older versions trigger an error on wrapt dependency:
pylint-dev/astroid#755

Bump pylint accordingly to new astroid

Fix some new PEP8 warnings appearing with new versions, and filter out
the larget I202 "Additional newline in a group of imports" one for now

Drop psutil from functional requirements, it indicated an old version
and we have it in common requirements now

Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at:
http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html
This includes eventlet 0.22.1, previous versions triggered a hard to
track error on enum34
Cap cryptography in lower-constraints to prevent discovery failure in
relevant job (other jobs have it capped via upper-constraints)

Change-Id: Ie74ea517a403e6e2a7a4e0a245dd20e5281339e8
Closes-Bug: #1907242
openstack-mirroring pushed a commit to openstack/openstack that referenced this issue Dec 9, 2020
* Update neutron from branch 'master'
  to 8d6c301301e33697fd4eb4d6de53f680b909a04d
  - Update requirements for recent pip failures
    
    Bump astroid test requirement to 2.4.0
    Older versions trigger an error on wrapt dependency:
    pylint-dev/astroid#755
    
    Bump pylint accordingly to new astroid
    
    Fix some new PEP8 warnings appearing with new versions, and filter out
    the larget I202 "Additional newline in a group of imports" one for now
    
    Drop psutil from functional requirements, it indicated an old version
    and we have it in common requirements now
    
    Bump a series of lower-constraints and requirements to work with new pip
    resolver, testing with steps outlined at:
    http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html
    This includes eventlet 0.22.1, previous versions triggered a hard to
    track error on enum34
    Cap cryptography in lower-constraints to prevent discovery failure in
    relevant job (other jobs have it capped via upper-constraints)
    
    Change-Id: Ie74ea517a403e6e2a7a4e0a245dd20e5281339e8
    Closes-Bug: #1907242
openstack-mirroring pushed a commit to openstack/neutron that referenced this issue Dec 17, 2020
Bump astroid test requirement to 2.4.0
Older versions trigger an error on wrapt dependency:
pylint-dev/astroid#755

Bump pylint accordingly to new astroid

Fix some new PEP8 warnings appearing with new versions, and filter out
the larget I202 "Additional newline in a group of imports" one for now

Drop psutil from functional requirements, it indicated an old version
and we have it in common requirements now

Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at:
http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html
This includes eventlet 0.22.1, previous versions triggered a hard to
track error on enum34
Cap cryptography in lower-constraints to prevent discovery failure in
relevant job (other jobs have it capped via upper-constraints)

Conflicts:
	lower-constraints.txt
	requirements.txt

Change-Id: Ie74ea517a403e6e2a7a4e0a245dd20e5281339e8
Closes-Bug: #1907242
(cherry picked from commit 8d6c301)
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

Successfully merging a pull request may close this issue.

1 participant