-
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
Chooses explicit source where it should choose primary #9740
Comments
Btw, When I comment the |
you have included torch in two groups. Excluding only one of them does not remove the requirement to install torch. |
Yes, but the one in dev should be taken from the /edit: Yep, so the issue might be a bit misphrased. |
the locking process chooses a single solution compatible with all groups there's an issue out there requesting support for mutually exclusive groups, you can close this as a duplicate of that |
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. |
Description
Poetry seems to install dependencies from groups I explicitly exclude and then fails because there's no candidate for my platform.Poetry seems to select the
explicit
source instead of theprimary
where it should not.I'm on macOS and apparently there's no suitable CPU-only version for
torch = "^2.3.0"
at https://download.pytorch.org/whl/cpu.So what I did:
inference
primary
sourceexplicit
sourceNow I'd expect
poetry install --without inference
to ... work. But it doesn't. It's looking for torch2.4.1+cpu
, not finding any candidate, and thus fails.I also tried marking the cpu-only source as
supplemental
andoptional
but to no avail.I see perhaps related issues but none seems to really match.
Workarounds
nope
Poetry Installation Method
homebrew
Operating System
macOS 14.7
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
see above
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: