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

Problem with openfold installation. #217

Open
zeqri opened this issue Apr 24, 2024 · 2 comments
Open

Problem with openfold installation. #217

zeqri opened this issue Apr 24, 2024 · 2 comments

Comments

@zeqri
Copy link

zeqri commented Apr 24, 2024

Hi,

I was able to install all packages required except for openfold. When trying to install it keep running into this error:

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/gpfs/bwfor/scratch/fr_ma453_o05i14/pip-req-build-qo0kbx1r/setup.py", line 56, in
_, bare_metal_major, _ = get_cuda_bare_metal_version(CUDA_HOME)
File "/gpfs/bwfor/scratch/fr_ma453_o05i14/pip-req-build-qo0kbx1r/setup.py", line 40, in get_cuda_bare_metal_version
raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

If someone could give feedback on how to solve this issue I would highly appreciate it.

@tornikeo
Copy link

Most likely you need to install cudatoolkit, using conda, or micromamba, like so:

micromamba install cudatoolkit -c nvidia

You get TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' since cuda_dir gives a None unless you have cudatoolkit, which contains the nvcc. Hope this helps.

@ejmeitz
Copy link

ejmeitz commented May 21, 2024

I had to install cudatoolkit-dev : conda install -c conda-forge cudatoolkit-dev -y

You can also check this specific issue is fixed by opening python and running:

from torch.utils.cpp_extension import CUDA_HOME
print(CUDA_HOME)

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