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

pip install -e submodules/depth-diff-gaussian-rasterization error, how should I do? Thank you for your reply! #23

Open
SiHengHeHSH opened this issue Dec 31, 2024 · 0 comments

Comments

@SiHengHeHSH
Copy link

pip install -e submodules/depth-diff-gaussian-rasterization

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Obtaining file:///home/walle/DrivingGaussian/submodules/depth-diff-gaussian-rasterization
Preparing metadata (setup.py) ... done
Installing collected packages: diff_gaussian_rasterization
Attempting uninstall: diff_gaussian_rasterization
Found existing installation: diff_gaussian_rasterization 0.0.0
Uninstalling diff_gaussian_rasterization-0.0.0:
Successfully uninstalled diff_gaussian_rasterization-0.0.0
DEPRECATION: Legacy editable install of diff_gaussian_rasterization==0.0.0 from file:///home/walle/DrivingGaussian/submodules/depth-diff-gaussian-rasterization (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457
Running setup.py develop for diff_gaussian_rasterization
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
    running develop
    running egg_info
    writing diff_gaussian_rasterization.egg-info/PKG-INFO
    writing dependency_links to diff_gaussian_rasterization.egg-info/dependency_links.txt
    writing top-level names to diff_gaussian_rasterization.egg-info/top_level.txt
    reading manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
    adding license file 'LICENSE.md'
    writing manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
    running build_ext
    building 'diff_gaussian_rasterization._C' extension
    /usr/local/cuda-11.8/bin/nvcc -I/home/walle/.local/lib/python3.8/site-packages/torch/include -I/home/walle/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/walle/.local/lib/python3.8/site-packages/torch/include/TH -I/home/walle/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/walle/miniconda3/envs/DrivingGaussian/include/python3.8 -c cuda_rasterizer/backward.cu -o build/temp.linux-x86_64-cpython-38/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/home/walle/DrivingGaussian/submodules/depth-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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
    In file included from cuda_rasterizer/backward.cu:12:
    cuda_rasterizer/backward.h:19:10: fatal error: glm/glm.hpp: 没有那个文件或目录
       19 | #include <glm/glm.hpp>
          |          ^~~~~~~~~~~~~
    compilation terminated.
    /home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      easy_install.initialize_options(self)
    /home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/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()
    /home/walle/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py:369: 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.'))
    error: command '/usr/local/cuda-11.8/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.

Rolling back uninstall of diff_gaussian_rasterization
Moving to /home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/site-packages/diff_gaussian_rasterization-0.0.0.dist-info/
from /home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/site-packages/~iff_gaussian_rasterization-0.0.0.dist-info
Moving to /home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/site-packages/diff_gaussian_rasterization/
from /home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/site-packages/~iff_gaussian_rasterization
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running develop
running egg_info
writing diff_gaussian_rasterization.egg-info/PKG-INFO
writing dependency_links to diff_gaussian_rasterization.egg-info/dependency_links.txt
writing top-level names to diff_gaussian_rasterization.egg-info/top_level.txt
reading manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
running build_ext
building 'diff_gaussian_rasterization.C' extension
/usr/local/cuda-11.8/bin/nvcc -I/home/walle/.local/lib/python3.8/site-packages/torch/include -I/home/walle/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/walle/.local/lib/python3.8/site-packages/torch/include/TH -I/home/walle/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/walle/miniconda3/envs/DrivingGaussian/include/python3.8 -c cuda_rasterizer/backward.cu -o build/temp.linux-x86_64-cpython-38/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/home/walle/DrivingGaussian/submodules/depth-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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
In file included from cuda_rasterizer/backward.cu:12:
cuda_rasterizer/backward.h:19:10: fatal error: glm/glm.hpp: 没有那个文件或目录
19 | #include <glm/glm.hpp>
| ^~~~~~~~~~~~~
compilation terminated.
/home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
/home/walle/miniconda3/envs/DrivingGaussian/lib/python3.8/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()
/home/walle/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py:369: 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.'))
error: command '/usr/local/cuda-11.8/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.

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

1 participant