-
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
Poetry unable to install pytorch3d #8574
Comments
pytorch3d have not published a package for the 0.7.4 release that is suitable for your platform - see https://pypi.org/project/pytorch3d/#files, and raise that with them. if you want to add an earlier release than the latest then you need to say so: which duplicates #707 please close |
@dimbleby are you sure this is the problem? When I try to specify the version as well, I still get the same error during the poetry install.
outputs:
|
|
Furthermore, pip has no problem installing the 0.7.4 version on my same exact platform...
Checking if correct version is installed:
|
yes I am sure this is the problem. There are also no suitable distributions for you platform at pytorch3d version 0.7.3. |
You are saying there are no suitable distributions for any of those versions. But What are the possible workarounds to use the poetry3d package, or others that run into similar issues? |
you are mixing up two things in this issue: sometimes you are trying to install from git and sometimes from pypi. pip will also refuse to install recent versions of pytorch3d from pypi. the error you reported when installing from git using poetry looks like a transient network issue, not something that can be fixed from this repository. |
"sometimes you are trying to install from git and sometimes from pypi" That's correct. Because I want to install this package for my project, using poetry, and I checked carefully the documentation for all alternative means of installation, and none of them succeeded. When attempting a pip install, while specifying explicitly the 0.7.4 version, it indeed fails (
Now, how is it possible that the above installation works and I can use the 0.7.4 version right away, while poetry is incapable to install the same package in any possible way? If it is just a network issue, why would it only affect poetry, but not pip? And furthermore, why can I, despite this, install any other package via poetry, without issues?
|
I cannot help you with your network issues. poetry is able to clone the repository successfully for me. You will have to figure that out for yourself. Having said that, installing from git doesn't work because facebookresearch/pytorch3d#1419. That too is not a poetry bug: it is correctly reported against pytorch3d. There is no poetry bug here. You will need to
please close |
"poetry is able to clone the repository successfully for me" What command did you use exactly that cloned the repository successfully? As I said, I doubt it is a network issue, as I am able to install anything else with poetry or pip. |
I copy pasted what you wrote above. But again: even if you get the cloning to work the git install will fail because of the pytorch3d bug. |
Here is an update. No more network issue. Is this what you were receiving? Command: Output:
|
I have repeatedly pointed you at the pytorch3d bug report for this, please click on the link |
Pytorch3D developers say it is a Poetry issue: "I think poetry might be deliberately not (yet) designed to deal with packages like PyTorch3D which have tight build time dependencies on versions of other packages. So it might be "by design" that this doesn't work easily. If that's not the case, we'd like help, e.g. pointers to documentation. If it is possible to adapt PyTorch3D nicely into poetry, it hasn't been done." |
I don't know why you have duplicated the existing pytorch issue. This is not a poetry issue. Please close. |
Because poetry is still unable to install the pytorch3d package, due to poetry not supporting build-time dependencies to be specified. Pytorch3d is depending on torch at build-time. Pip has no issue to install the package, but poetry fails. I raised the question on pytorch3d's side as you asked for, and they told me that it is a missing feature in Poetry. |
pytorch3d has undeclared build-time dependencies, and the solution should be that it declares them - which is what facebookresearch/pytorch3d#1419 says all along you should close both the issues that you have raised
and continue any further discussion in facebookresearch/pytorch3d#1419 |
this works, if you properly define your toml |
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. |
Poetry version: 1.6.1
Python version: 3.8.10
OS version and name: 20.04.5 LTS
pyproject.toml: shown below
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
pip
has no problem to install thepytorch3d
package via a simple pip install:pip install pytorch3d
.Poetry, on the other hand, fails to do the job.
I believe this is a bug and would like to ask for workarounds and, if possible, a resolution of this unwanted behavior.
I tried all the below commands, in vain:
poetry add -vvv pytorch3d
showed the following output:I also tried adding the package via:
poetry add -vvv git+ssh://[email protected]/facebookresearch/pytorch3d.git
which also yielded an error:I also tried using
poetry add -vvv git+https://github.com/facebookresearch/pytorch3d.git
which gave me a different output, this time a timeout happens:My
pyproject.toml
is fully empty.The text was updated successfully, but these errors were encountered: