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

build extension problem #194

Open
Doreeeeen opened this issue Feb 27, 2024 · 1 comment
Open

build extension problem #194

Doreeeeen opened this issue Feb 27, 2024 · 1 comment

Comments

@Doreeeeen
Copy link

Doreeeeen commented Feb 27, 2024

hi, i use
bash scripts/install_ext.sh

It failed with this:
Processing ./raymarching
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/home/jiaod/miniconda3/envs/occnerf/OccNeRF-main/torch-ngp/raymarching/setup.py", line 47, in
CUDAExtension(
File "/home/jiaod/miniconda3/envs/torch-ngp/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 1074, in CUDAExtension
library_dirs += library_paths(cuda=True)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jiaod/miniconda3/envs/torch-ngp/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 1201, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jiaod/miniconda3/envs/torch-ngp/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2407, in _join_cuda_home
raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
[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.

and then i set the CUDA_HOME but still report errors.
what should i do plz!

@Feez2403
Copy link

I had a similar issue, this solution fixed the problem for me

conda/conda#7757 (comment)

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

2 participants