-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Can't install PyTorch3D with Github actions #1810
Comments
I see that this comment says that you can use a prebuilt whl with explicit torch and pytorch3d versions, however I haven't yet been able to find an index of them. INSTALL.md only mentions prebuilt binaries for PyTorch 1.11.0; is this information current or do additional builds for later PyTorch and Python versions exist? |
I've also tried Conda, but it doesn't look like the PyTorch3D Conda package supports PyTorch 2.2.0. edit: The Conda build works if I bump the PyTorch version down to 2.1.2 and Python up to 3.11, so this could be a partial workaround that would let me test some aspects of my build. Though a working pip install would still be ideal as I think I chose those versions for a reason (will have to check). |
I tried combining conda+pip and managed to get it to work with my desired Python+PyTorch versions. I was using Conda on my local machine but not on GitHub initially (just used the default python env), so this could start to explain the difference in behavior. If anybody else runs into similar problems, try something like this:
Still not sure if the difference in behavior is expected, so will leave this open. |
The latest PyTorch3D does not have builds for PyTorch 2.2 (except the special pip package). PyTorch 2.2 is newer than the latest release of PyTorch3D I think. This is likely to be fixed sometime with a new release of PyTorch3D. You can build from source if you want. There's nothing new to track here. |
It still fails with pip on github actions using Python 3.11, PyTorch 2.1.2, and PyTorch3D 0.7.6: Failed run yaml This is the combination that installs successfully with Conda on github actions, so I believe this behavior might be unexpected. |
I'm not sure why the torch import is failing. It may be that |
Hey, Thank you |
🐛 Bugs / Unexpected behaviors
I can install pytorch3d locally (in a fresh pip env (edit: provided by conda, important later)) if I do this:
However the same operations fail when run in the context of a Github action:
Instructions To Reproduce the Issue:
Put the following in .github/workflows as a .yaml file (and change the branch name if necessary):
Links:
Failing action .yaml
Failed run
Even though I install torch first, and then pytorch3d, pytorch3d's setup can't find torch. It doesn't matter if I install them in the same command either.
This seems related to #1673 and #1419 which prevents PyTorch3D from being installed under Poetry due to the installer expecting torch to be present but no mention of the dependency being found in the package info.
Every other combination that I've tried including Pytorch3d fails; I'm not sure how to work around this short of forking pytorch3d and inserting a dependency on torch to keep pip from getting confused.
The text was updated successfully, but these errors were encountered: