Closed dmugtasimov closed 4 years ago
I think I hit the same bug, but with a slightly different version requirement >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <3.9
, when I tried to install python-minifier:
$ poetry init
...
$ poetry add python-minifier
Creating virtualenv myapp in /home/tueda/tmp/myapp/.venv
Using version ^2.3.1 for python-minifier
Updating dependencies
Resolving dependencies... (0.0s)
[SolverProblemError]
The current project's Python requirement (^3.8) is not compatible with some of the required packages Python requirement:
- python-minifier requires Python >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <3.9
Because no versions of python-minifier match >2.3.1,<3.0.0
and python-minifier (2.3.1) requires Python >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <3.9, python-minifier is forbidden.
So, because myapp depends on python-minifier (^2.3.1), version solving failed.
In case someone needs a workaround while the issue is being fixed (add <3.9
to pyproject.toml
).
pyproject.toml
:
[tool.poetry.dependencies]
# TODO(dmu) MEDIUM: <3.9 was added as work around for
# https://github.com/python-poetry/poetry/issues/2846 . Remove once fixed
python = "^3.8,<3.9"
Hello,
it's not a bug nor a fix is required. It's a feature. See https://github.com/python-poetry/poetry/issues/1930#issuecomment-653906544
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.