-
Notifications
You must be signed in to change notification settings - Fork 171
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
[BUG] Unable to install prospector with pipenv witout additional dependency #433
Comments
I think this was fixed in #414 , could you try to install the latest master, please ? We'll release 1.4.1 shortly. |
I confirm that's fixed, Thanks :-) |
I think the issue might be back with the 1.5 release
This is for Python 3.9 on Mac. Works with
|
What version of Also, could you try installing the latest |
I do a dirty test, but why not upgrade pyflakes? |
The dependency definitions are specific to |
The issue that they lock to minor releases, while they are not supposed to break things . If their maintainers are sensible it is sufficient to lock to major release |
System info: ❯ python3 --version
Python 3.9.4
❯ pip freeze
click==8.0.1
pep517==0.11.0
pip-tools==6.2.0
tomli==1.2.1
❯ cat requirements.in
prospector[with_everything]==1.5.0.1
❯ pip-compile requirements.in
Could not find a version that matches pyflakes<2.3.0,<2.4.0,>=2.2.0,>=2.3.0 (from prospector[with_everything]==1.5.0.1->-r requirements.in (line 1))
Tried: 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.7.3, 0.8, 0.8.1, 0.8.1, 0.9.0, 0.9.0, 0.9.1, 0.9.1, 0.9.2, 0.9.2, 1.0.0, 1.0.0, 1.1.0, 1.1.0, 1.2.0, 1.2.0, 1.2.1, 1.2.1, 1.2.2, 1.2.2, 1.2.3, 1.2.3, 1.3.0, 1.3.0, 1.4.0, 1.4.0, 1.5.0, 1.5.0, 1.6.0, 1.6.0, 2.0.0, 2.0.0, 2.1.0, 2.1.0, 2.1.1, 2.1.1, 2.2.0, 2.2.0, 2.3.0, 2.3.0, 2.3.1, 2.3.1
There are incompatible versions in the resolved dependencies:
pyflakes<2.4.0,>=2.3.0 (from flake8==3.9.2->flake8-polyfill==1.0.2->pep8-naming==0.10.0->prospector[with_everything]==1.5.0.1->-r requirements.in (line 1))
pyflakes<2.3.0,>=2.2.0 (from prospector[with_everything]==1.5.0.1->-r requirements.in (line 1)) I'm trying to figure out if there's a way to provide a locally built tar/wheel in Edit: Figured it out, did not help: ❯ python3 --version
Python 3.9.4
❯ pip freeze
backports.entry-points-selectable==1.1.0
CacheControl==0.12.6
cachy==0.3.0
certifi==2021.5.30
charset-normalizer==2.0.4
cleo==0.8.1
clikit==0.6.2
crashtest==0.3.1
distlib==0.3.2
filelock==3.0.12
html5lib==1.1
idna==3.2
keyring==21.8.0
lockfile==0.12.2
msgpack==1.0.2
packaging==20.9
pastel==0.2.1
pexpect==4.8.0
pkginfo==1.7.1
platformdirs==2.3.0
poetry==1.1.8
poetry-core==1.0.4
ptyprocess==0.7.0
pylev==1.4.0
pyparsing==2.4.7
requests==2.26.0
requests-toolbelt==0.9.1
shellingham==1.4.0
six==1.16.0
tomlkit==0.7.2
urllib3==1.26.6
virtualenv==20.7.2
webencodings==0.5.1
# (Boy, Poetry sure does have a lot of dependencies...)
MacBook-Pro in prospector on develop (75717e8) is 📦 v1.5.0.1 via 🐍 v3.9.4 (prospector)
❯ poetry build
Building prospector (1.5.0.1)
- Building sdist
- Built prospector-1.5.0.1.tar.gz
- Building wheel
- Built prospector-1.5.0.1-py3-none-any.whl
❯ pip freeze
click==8.0.1
pep517==0.11.0
pip-tools==6.2.0
tomli==1.2.1
❯ cat requirements.in
./prospector-1.5.0.1-py3-none-any.whl
❯ pip-compile requirements.in
Could not find a version that matches pyflakes<2.3.0,<2.4.0,>=2.2.0,>=2.3.0 (from flake8==3.9.2->flake8-polyfill==1.0.2->pep8-naming==0.10.0->prospector==1.5.0.1->-r requirements.in (line 1))
Tried: 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.7.3, 0.8, 0.8.1, 0.8.1, 0.9.0, 0.9.0, 0.9.1, 0.9.1, 0.9.2, 0.9.2, 1.0.0, 1.0.0, 1.1.0, 1.1.0, 1.2.0, 1.2.0, 1.2.1, 1.2.1, 1.2.2, 1.2.2, 1.2.3, 1.2.3, 1.3.0, 1.3.0, 1.4.0, 1.4.0, 1.5.0, 1.5.0, 1.6.0, 1.6.0, 2.0.0, 2.0.0, 2.1.0, 2.1.0, 2.1.1, 2.1.1, 2.2.0, 2.2.0, 2.3.0, 2.3.0, 2.3.1, 2.3.1
There are incompatible versions in the resolved dependencies:
pyflakes<2.4.0,>=2.3.0 (from flake8==3.9.2->flake8-polyfill==1.0.2->pep8-naming==0.10.0->prospector==1.5.0.1->-r requirements.in (line 1))
pyflakes<2.3.0,>=2.2.0 (from prospector==1.5.0.1->-r requirements.in (line 1)) |
Interestingly enough ❯ python3 --version
Python 3.9.4
❯ pip freeze
backports.entry-points-selectable==1.1.0
CacheControl==0.12.6
cachy==0.3.0
certifi==2021.5.30
charset-normalizer==2.0.4
cleo==0.8.1
clikit==0.6.2
crashtest==0.3.1
distlib==0.3.2
filelock==3.0.12
html5lib==1.1
idna==3.2
keyring==21.8.0
lockfile==0.12.2
msgpack==1.0.2
packaging==20.9
pastel==0.2.1
pexpect==4.8.0
pkginfo==1.7.1
platformdirs==2.3.0
poetry==1.1.8
poetry-core==1.0.4
ptyprocess==0.7.0
pylev==1.4.0
pyparsing==2.4.7
requests==2.26.0
requests-toolbelt==0.9.1
shellingham==1.4.0
six==1.16.0
tomlkit==0.7.2
urllib3==1.26.6
virtualenv==20.7.2
webencodings==0.5.1
MacBook-Pro in ~/prospector is 📦 v0.1.0 via 🐍 v3.9.4 (prospector)
❯ cat pyproject.toml
[tool.poetry]
name = "prospector-dependency-test"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = "^3.9"
prospector = {extras = ["with_everything"], version = "^1.5.0"}
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
❯ poetry install
Updating dependencies
Resolving dependencies... (44.5s)
Writing lock file
Package operations: 39 installs, 0 updates, 0 removals
• Installing lazy-object-proxy (1.6.0)
• Installing wrapt (1.12.1)
• Installing astroid (2.7.3)
• Installing isort (5.9.3)
• Installing mccabe (0.6.1)
• Installing pep8 (1.7.1)
• Installing pyflakes (2.2.0)
• Installing smmap (4.0.0)
• Installing toml (0.10.2)
• Installing flake8 (2.3.0)
• Installing gitdb (4.0.7)
• Installing pbr (5.6.0)
• Installing pylint (2.10.2)
• Installing typing-extensions (3.10.0.2)
• Installing docutils (0.17.1)
• Installing flake8-polyfill (1.0.2)
• Installing gitpython (3.1.20)
• Installing mypy-extensions (0.4.3)
• Installing pies (2.6.7)
• Installing pygments (2.10.0)
• Installing pylint-plugin-utils (0.6)
• Installing pyyaml (5.4.1)
• Installing snowballstemmer (2.1.0)
• Installing stevedore (3.4.0)
• Installing bandit (1.7.0)
• Installing dodgy (0.2.1)
• Installing frosted (1.4.1)
• Installing mypy (0.910)
• Installing pep8-naming (0.10.0)
• Installing pycodestyle (2.7.0)
• Installing pydocstyle (6.1.1)
• Installing pylint-celery (0.3)
• Installing pylint-django (2.4.4)
• Installing pylint-flask (0.6)
• Installing pyroma (3.2)
• Installing requirements-detector (0.7)
• Installing setoptconf (0.2.0)
• Installing vulture (2.3)
• Installing prospector (1.5.0.1)
|
Ok, this might be actually a bug in Bumping pyflakes version range to |
I would merge a pull request that introduce range for all requirements instead of fixed version. (We already handled pylint and pyflakes but doing them one by one is not very efficient). |
Describe the bug
pypenv install prospector==1.4.0
returns the following errorA workaround is to run:
pipenv install prospector==1.4.0 flake8==3.8.4
The solution is probably to update
pyflake
...To Reproduce
Steps to reproduce the behavior:
pypenv install prospector==1.4.0
from a clean folderExpected behavior
Install prospector without any error
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: