Skip to content
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 installation "Unable to find installation candidates for nvidia-cudnn-cu11" #73

Open
ErrorUnknown88 opened this issue Dec 15, 2022 · 6 comments

Comments

@ErrorUnknown88
Copy link

When installing the package using peotry on a device that does not have cuda installed I get the error:

Unable to find installation candidates for nvidia-cudnn-cu11

since the package works on CPU as well is it possible to fix this install issue so that i don't have to have a gpu enabled device to install the package.

@eric79
Copy link

eric79 commented Dec 15, 2022

+1

@akshayka
Copy link
Member

Thanks for reporting. I am not very familiar with poetry, but it looks like this is due to the dependency on torch, which we can't remove.

Here is a relevant thread:

python-poetry/poetry#6939

Scanning that thread, it appears that a fix for torch has been merged, but perhaps it has not yet made it to pypi.

@eric79
Copy link

eric79 commented Dec 16, 2022

I believe the torch 1.13.1 version that should have the fix has indeed been posted to PyPI: https://pypi.org/project/torch/

@eric79
Copy link

eric79 commented Dec 16, 2022

I will admit that I'm pretty ignorant when it comes to building distributions for multiple platforms ... it looks like your pyproject.toml doesn't reference the torch dependency, but rather I found this like in your requirements.txt:

torch --find-links https://download.pytorch.org/whl/torch_stable.html

Following that url, there does seem to be torch 1.13.1 versions up there. Do you need to do something special to coax pymde to use the latest torch?

@akshayka
Copy link
Member

The requirements.txt is only used in my continuous integration, so I don't think it will make a difference in the poetry installation. PyMDE imposes no max versions on torch/torchvision, so you shouldn't need to do anything special to use their latest versions.

  • I've never used poetry before, but I scanned their docs just now. Is my understanding correct in that you have a poetry project, and PyMDE is one of its dependencies? Then typing poetry install fails when it tries to install PyMDE?
  • If so, can you add an explicit dependencies on using the latest torch and torchvision versions in your pyproject.toml? Maybe just figuring out which versions are required, or how to specify them, will be most of the work.
  • If I have free time over the holidays, I can try to come up with a solution.
  • In the meantime, if you post the entire output from the poetry command, as well as your entire pyproject.toml file, I might be able to help further.

@eric79
Copy link

eric79 commented Dec 16, 2022

Ha! I didn't realize that the latest version of torch had just been posted to PyPI yesterday. I ran the poetry install today, and that seems to have fixed everything. Woohoo!

@ErrorUnknown88 , do you want to try again and see if it is indeed fixed for you, too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants