Skip to content

pip 20.2b1/Py2.7: Cannot install pylint (environment marker conflicts) #8362

New issue

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

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

Already on GitHub? # to your account

Closed
jamadden opened this issue May 29, 2020 · 2 comments
Closed

Comments

@jamadden
Copy link
Member

Working with the pip 20.2b1 unstable resolver in an existing virtual environment, I am unable to install gevent's dev-requirements.txt on Python 2.7 with the alpha resolver. Normal resolver works fine. The error happens with and without the -U option to pip.

$  pip --unstable-feature=resolver install  -r dev-requirements.txt
Requirement already satisfied: restview in //lib/python2.7/site-packages (from -r dev-requirements.txt (line 4)) (2.9.2)
Requirement already satisfied: pylint>=1.8.0 in //lib/python2.7/site-packages (from -r dev-requirements.txt (line 6)) (1.9.4)
ERROR: Could not find a version that satisfies the requirement pylint>=1.8.0
ERROR: Could not find a version that satisfies the requirement pylint>=2.5.0
ERROR: No matching distribution found for pylint, pylint

The relevant lines of dev-requirements.txt look like this:

restview

pylint>=1.8.0 ; python_version < "3.4"
# pylint 2 needs astroid 2; unfortunately, it uses `typed_ast`
# which has a C extension that doesn't build on PyPy
pylint >= 2.5.0 ; python_version >= "3.4"  and platform_python_implementation == "CPython"
astroid >= 2.4.0 ; python_version >= "3.4" and platform_python_implementation == "CPython"

I can provide the pipdeptree if desired, but it's quite large as this is an old virtual environment.

cc @ei8fdb @nlhkabu

@pradyunsg
Copy link
Member

This is basically the same as #8363 as far as I can tell. Similar reasoning appiles -- could you try this against master?

@ghost ghost removed the S: needs triage Issues/PRs that need to be triaged label May 30, 2020
@pradyunsg pradyunsg added the S: awaiting response Waiting for a response/more information label May 30, 2020
@jamadden
Copy link
Member Author

Fixed in master. Thanks!

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label May 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants