-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Resolution fails for boto3/botocore in multiple python versions #3367
Comments
Not sure if I should create a new issue, but this looks similar to mine. I have a similar problem with dev dependencies. [tool.poetry.dependencies]
python = ">=2.7"
six = [
# Tox needs this version
{version = "^1.14.0", python = ">=2.7 !=3.0.* !=3.1.* !=3.2.*"},
# Python 3.0 through 3.2 need this version
{version = "==1.11.0", python = ">=3.0.* <=3.2.*"}
]
[tool.poetry.dev-dependencies]
# Tox should not be installed on python versions where
# six==1.11.0 is installed (3.0, 3.1, 3.2) plus (3.3, 3.4) which are not supported by tox.
tox = { version = "^3.24.1", python = ">=2.7 !=3.0.* !=3.1.* !=3.2.* !=3.3.* !=3.4.*" } Output
I forced uploaded to PyPI and I can normally install my package through pip (it just mentions that the dev dependency is not getting installed, which end users don't really care unless they want to test) Also I am telling poetry not to install tox on a superset of python versions that I specified for six==1.11.0, so this should't even be a conflict. |
Anyone have any ideas on how to work around this issue? |
We just gave up, and created a python2 incompatible version of the package 🤷 |
I think, I found a solution for this issue. With the changes in PR #4695, I was able to lock the |
I have a similar case. poetry (1.1.12) cannot solve the following dependencies. [tool.poetry.dependencies]
python = "^2.7 || ^3.7"
[tool.poetry.dev-dependencies]
pytest = [
{version="^4.6.11", python="^2.7"},
{version="^6.2.0", python="^3.7"}
]
pytest-mock = [
{version="^1.13.0", python="^2.7"},
{version="^3.6.1", python="^3.7"}
] With poetry 1.1.12https://gist.github.com/GtTmy/22bfd306a53ed7538eededd31f443cca With #4695
|
I believe i'm seeing this as well.
With poetry 1.1.13
With #4695
|
This is a workaround regarding Poetry's bug. If there are two identically constrained version specification, Poetry attempts to resolve dependency versions for every constraints combination, even if there's no intersection, which raises SolverProblemError. This behaviour isn't fixed yet but tracked in <python-poetry/poetry#3367> and will be resolved in <python-poetry/poetry#4695>.
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. |
-vvv
option).Issue
We need very specific
boto3/botocore
versions for compatibility with legacy code. In our non-poetry projects we set the following in therequirements.txt
:And installation works great in both python 2.7 and python 3.x.
I've attempted to create a comparable
pyproject.toml
:But
poetry lock
results in an error (on both python versions). Here's the error in a python 3.8 env:And while the resolution starts with:
It at some point switches to:
Which of course causes the error (as these two are indeed incompatible versions).
Full output of
poetry lock -vvv
can be seen here.The text was updated successfully, but these errors were encountered: