gaussian-splatting
gaussian-splatting copied to clipboard
Why Failed to build diff_gaussian_rasterization? Does anybody help me???
Channels:
- pytorch
- conda-forge
- defaults
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free Platform: linux-64 Collecting package metadata (repodata.json): done Solving environment: done
Downloading and Extracting Packages:
Preparing transaction: done Verifying transaction: done Executing transaction: / By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html
done Installing pip dependencies: / Ran pip subprocess with arguments: ['/root/miniconda3/envs/gaussian_splatting/bin/python', '-m', 'pip', 'install', '-U', '-r', '/root/data1/lzq/gaussian-splatting-main/condaenv.cvin89mw.requirements.txt', '--exists-action=b'] Pip subprocess output: Processing ./submodules/diff-gaussian-rasterization Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Processing ./submodules/simple-knn Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: diff_gaussian_rasterization, simple_knn Building wheel for diff_gaussian_rasterization (setup.py): started Building wheel for diff_gaussian_rasterization (setup.py): finished with status 'error' Running setup.py clean for diff_gaussian_rasterization Building wheel for simple_knn (setup.py): started Building wheel for simple_knn (setup.py): still running... Building wheel for simple_knn (setup.py): finished with status 'done' Created wheel for simple_knn: filename=simple_knn-0.0.0-cp37-cp37m-linux_x86_64.whl size=1789302 sha256=3606fb39ee788af37c2b67023002f5bb0a1726903c153af97bbb720857b7bf61 Stored in directory: /root/.cache/pip/wheels/d7/51/77/44977beda21a173900ff6dc15f16e94a671d258e3e4c21164f Successfully built simple_knn Failed to build diff_gaussian_rasterization Installing collected packages: simple_knn, diff_gaussian_rasterization Running setup.py install for diff_gaussian_rasterization: started Running setup.py install for diff_gaussian_rasterization: finished with status 'error'
Pip subprocess error: /usr/bin/bash: /root/miniconda3/envs/pp-demo/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash) error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel /root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build/lib.linux-x86_64-cpython-37 creating build/lib.linux-x86_64-cpython-37/diff_gaussian_rasterization copying diff_gaussian_rasterization/init.py -> build/lib.linux-x86_64-cpython-37/diff_gaussian_rasterization running build_ext /root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/utils/cpp_extension.py:813: UserWarning: The detected CUDA version (11.4) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'diff_gaussian_rasterization.C' extension creating build/temp.linux-x86_64-cpython-37 creating build/temp.linux-x86_64-cpython-37/cuda_rasterizer /usr/local/cuda/bin/nvcc -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include/TH -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/miniconda3/envs/gaussian_splatting/include/python3.7m -c cuda_rasterizer/backward.cu -o build/temp.linux-x86_64-cpython-37/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERATORS_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -I/root/data1/lzq/gaussian-splatting-main/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14 In file included from cuda_rasterizer/backward.cu:12: cuda_rasterizer/backward.h:19:10: fatal error: glm/glm.hpp: No such file or directory 19 | #include <glm/glm.hpp> | ^~~~~~~~~~~~~ compilation terminated. error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff_gaussian_rasterization error: subprocess-exited-with-error
× Running setup.py install for diff_gaussian_rasterization did not run successfully. │ exit code: 1 ╰─> [35 lines of output] running install /root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/diff_gaussian_rasterization
copying diff_gaussian_rasterization/__init__.py -> build/lib.linux-x86_64-cpython-37/diff_gaussian_rasterization
running build_ext
/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/utils/cpp_extension.py:813: UserWarning: The detected CUDA version (11.4) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
building 'diff_gaussian_rasterization._C' extension
creating build/temp.linux-x86_64-cpython-37
creating build/temp.linux-x86_64-cpython-37/cuda_rasterizer
/usr/local/cuda/bin/nvcc -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include/TH -I/root/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/miniconda3/envs/gaussian_splatting/include/python3.7m -c cuda_rasterizer/backward.cu -o build/temp.linux-x86_64-cpython-37/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -I/root/data1/lzq/gaussian-splatting-main/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14
In file included from cuda_rasterizer/backward.cu:12:
cuda_rasterizer/backward.h:19:10: fatal error: glm/glm.hpp: No such file or directory
19 | #include <glm/glm.hpp>
| ^~~~~~~~~~~~~
compilation terminated.
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> diff_gaussian_rasterization
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
failed
CondaEnvException: Pip failed