https://pantsbuild.org/ logo
#general
Title
# general
s

straight-action-80318

07/23/2022, 8:15 PM
Hey folks! My dependency generation is hanging when I try and use a nightly release of PyTorch. I have a downloaded whl inside a local directory. Things work fine with 1.12.0 which is the latest stable release. But when I try and install the nightly (
1.13.0.dev20220723+cu116
) my
generate-lockfiles
just hangs, it’s been going 1700s now. Is this some kind of parsing thing?
s

straight-action-80318

07/23/2022, 9:18 PM
Oh interesting, that could be it. If I understand correctly this is because of somewhat uncommon metadata in the
whl
itself. Is there some way I can modify the
whl
to make it compatible with the older Pants release?
e

enough-analyst-54434

07/23/2022, 9:21 PM
You can always try upgrading Pex, it has a very stable interface that permits that. An example is here: https://github.com/lablup/backend.ai/pull/545/files#diff-0e52f2670837f305c9a0d8be0f90156bf366431563506c21584fa2ea4f42ba1fR50-R59 Just follow Joongi's example but for Pex 2.1.100.
The metadata is non-trivial to track down. It could be in any of the direct or transitive dependencies that are being solved for when locking.
By the way, there are much newer 2.13.x versions: https://pypi.org/project/pantsbuild.pants/2.13.0rc0/ And of course even newer 2.14.x versions. Either way though, Pex 2.1.100 hasn't quite landed in either; so you'll need the
pants.toml
edit anyhow.
s

straight-action-80318

07/23/2022, 9:31 PM
mmm okay maybe I’ll wait for the new Pex to land and then upgrade it, until then I can try reverting PyTorch to 1.11.0 to fix the bug they introduced in 1.12.0 🙂
6 Views