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 tried to resolve torch[transformers] (it's the other way round) and got a very confusing error:
cargo run --bin puffin-dev -- resolve-cli "torch[tranformers]"
Finished dev [unoptimized + debuginfo] target(s) in 0.08s
Running `target/debug/puffin-dev resolve-cli 'torch[tranformers]'`
puffin-dev failed
Caused by: No solution found when resolving: torch[tranformers]
Caused by: Because there is no version of torch[tranformers] available matching <1.7.1, >1.7.1, <1.8.0, >1.8.0, <1.8.1, >1.8.1, <1.9.0, >1.9.0, <1.9.1, >1.9.1, <1.10.0, >1.10.0, <1.10.1, >1.10.1, <1.10.2, >1.10.2, <1.11.0, >1.11.0, <1.12.0, >1.12.0, <1.12.1, >1.12.1, <1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 and dependencies of torch[tranformers] at version ==1.7.1 are unavailable, torch[tranformers]<1.8.0, >1.8.0, <1.8.1, >1.8.1, <1.9.0, >1.9.0, <1.9.1, >1.9.1, <1.10.0, >1.10.0, <1.10.1, >1.10.1, <1.10.2, >1.10.2, <1.11.0, >1.11.0, <1.12.0, >1.12.0, <1.12.1, >1.12.1, <1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==1.8.0 are unavailable and dependencies of torch[tranformers] at version ==1.8.1 are unavailable, torch[tranformers]<1.9.0, >1.9.0, <1.9.1, >1.9.1, <1.10.0, >1.10.0, <1.10.1, >1.10.1, <1.10.2, >1.10.2, <1.11.0, >1.11.0, <1.12.0, >1.12.0, <1.12.1, >1.12.1, <1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==1.9.0 are unavailable and dependencies of torch[tranformers] at version ==1.9.1 are unavailable, torch[tranformers]<1.10.0, >1.10.0, <1.10.1, >1.10.1, <1.10.2, >1.10.2, <1.11.0, >1.11.0, <1.12.0, >1.12.0, <1.12.1, >1.12.1, <1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==1.10.0 are unavailable and dependencies of torch[tranformers] at version ==1.10.1 are unavailable, torch[tranformers]<1.10.2, >1.10.2, <1.11.0, >1.11.0, <1.12.0, >1.12.0, <1.12.1, >1.12.1, <1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==1.10.2 are unavailable and dependencies of torch[tranformers] at version ==1.11.0 are unavailable, torch[tranformers]<1.12.0, >1.12.0, <1.12.1, >1.12.1, <1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==1.12.0 are unavailable and dependencies of torch[tranformers] at version ==1.12.1 are unavailable, torch[tranformers]<1.13.0, >1.13.0, <1.13.1, >1.13.1, <2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==1.13.0 are unavailable and dependencies of torch[tranformers] at version ==1.13.1 are unavailable, torch[tranformers]<2.0.0, >2.0.0, <2.0.1, >2.0.1, <2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==2.0.0 are unavailable and dependencies of torch[tranformers] at version ==2.0.1 are unavailable, torch[tranformers]<2.1.0, >2.1.0 is forbidden.
And because dependencies of torch[tranformers] at version ==2.1.0 are unavailable and root ==0a0.dev0 depends on torch[tranformers], version solving failed.
Compared to pip-compile:
echo "torch[transformers]" | pip-compile --output-file - -
WARNING: torch 2.1.0 does not provide the extra 'transformers'
[...]
The text was updated successfully, but these errors were encountered:
## Summary
When resolving `transformers[tensorboard]`, the `[tensorboard]` extra
doesn't exist. Previously, we returned "unknown" dependencies for this
variant, which leads the resolution to try all versions, then fail. This
PR instead warns, but returns the base dependencies for the package,
which matches `pip`. (Poetry doesn't even warn, it just proceeds as
normal.)
Arguably, it would be better to return a custom incompatibility here and
then propagate... But this PR is better than the status quo, and I don't
know if we have support for that behavior yet...? (\cc @zanieb)
Closes#386.
Closes#423.
I tried to resolve
torch[transformers]
(it's the other way round) and got a very confusing error:Compared to pip-compile:
The text was updated successfully, but these errors were encountered: