You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a dependency resolution problem in my project. For simplicity I put together this minimal example.
Create a new poetry project and use this a pyproject.toml content
When running poetry lock it will produce the following error:
Because no versions of onnx match >1.16,<1.16.1 || >1.16.1,<2.0
and onnx (1.16.0) depends on numpy (>=1.20), onnx (>=1.16,<1.16.1 || >1.16.1,<2.0) requires numpy (>=1.20).
And because onnx (1.16.1) depends on numpy (>=1.20), onnx (>=1.16,<2.0) requires numpy (>=1.20).
So, because onnx-test depends on both numpy (1.16.1) and onnx (^1.16), version solving failed.
But this is incorrect. onnx-test only depends on numpy 1.16.1 for python 3.6, while onnx is only a dependency for python 3.10. Could this be a bug or am I misinterpreting something?
Description
Hi,
I'm having a dependency resolution problem in my project. For simplicity I put together this minimal example.
Create a new poetry project and use this a pyproject.toml content
When running
poetry lock
it will produce the following error:But this is incorrect. onnx-test only depends on numpy 1.16.1 for python 3.6, while onnx is only a dependency for python 3.10. Could this be a bug or am I misinterpreting something?
Thanks!
Workarounds
Not that I know of.
Poetry Installation Method
pipx
Operating System
Ubuntu 22.04
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: