Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Have you followed all the steps in the FAQ?
- I have tried the steps in the FAQ.
Current Behavior
pip install --upgrade git+https://github.com/mit-han-lab/torchsparse.git@v1.4.0
Error Line
error: subprocess-exited-with-error
RuntimeError: Error compiling objects for extension
error: legacy-install-failure
Environment
- GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
- NVCC:Cuda compilation tools, release 11.6, V11.6.124
- PyTorch:1.13.1
- PyTorch CUDA:11.6
Full Error Log
Error Log
Installing collected packages: torchsparse
Running setup.py install for torchsparse ... error
error: subprocess-exited-with-error
× Running setup.py install for torchsparse did not run successfully.
│ exit code: 1
╰─> [164 lines of output]
running install
/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/torchsparse
copying torchsparse/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsparse
copying torchsparse/operators.py -> build/lib.linux-x86_64-cpython-38/torchsparse
copying torchsparse/version.py -> build/lib.linux-x86_64-cpython-38/torchsparse
copying torchsparse/tensor.py -> build/lib.linux-x86_64-cpython-38/torchsparse
creating build/lib.linux-x86_64-cpython-38/torchsparse/nn
copying torchsparse/nn/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn
creating build/lib.linux-x86_64-cpython-38/torchsparse/utils
copying torchsparse/utils/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsparse/utils
copying torchsparse/utils/utils.py -> build/lib.linux-x86_64-cpython-38/torchsparse/utils
copying torchsparse/utils/collate.py -> build/lib.linux-x86_64-cpython-38/torchsparse/utils
copying torchsparse/utils/quantize.py -> build/lib.linux-x86_64-cpython-38/torchsparse/utils
creating build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/crop.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/norm.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/activation.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/bev.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/conv.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
copying torchsparse/nn/modules/pooling.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/modules
creating build/lib.linux-x86_64-cpython-38/torchsparse/nn/utils
copying torchsparse/nn/utils/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/utils
copying torchsparse/nn/utils/kernel.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/utils
copying torchsparse/nn/utils/apply.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/utils
creating build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/__init__.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/voxelize.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/hash.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/downsample.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/crop.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/query.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/activation.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/count.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/conv.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/devoxelize.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
copying torchsparse/nn/functional/pooling.py -> build/lib.linux-x86_64-cpython-38/torchsparse/nn/functional
running build_ext
building 'torchsparse.backend' extension
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/convolution
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/devoxelize
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/hash
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/hashmap
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/others
creating /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/voxelize
Emitting ninja build file /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/15] c++ -MMD -MF /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/hashmap/hashmap_cpu.o.d -pthread -B /home/daybeha/anaconda3/envs/sparse_conv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include/TH -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/daybeha/anaconda3/envs/sparse_conv/include/python3.8 -c -c /tmp/pip-req-build-n6e_uwin/torchsparse/backend/hashmap/hashmap_cpu.cpp -o /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/hashmap/hashmap_cpu.o -g -O3 -fopenmp -lgomp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
......
[15/15] /usr/local/cuda-11.6/bin/nvcc -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include/TH -I/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/daybeha/anaconda3/envs/sparse_conv/include/python3.8 -c -c /tmp/pip-req-build-n6e_uwin/torchsparse/backend/others/count_cuda.cu -o /tmp/pip-req-build-n6e_uwin/build/temp.linux-x86_64-cpython-38/torchsparse/backend/others/count_cuda.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'"'"'' -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=backend -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1900, in _run_ninja_build
subprocess.run(
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-req-build-n6e_uwin/setup.py", line 30, in <module>
setup(
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
......
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1573, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/daybeha/anaconda3/envs/sparse_conv/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1916, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[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.
╰─> torchsparse
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Metadata
Metadata
Assignees
Labels
No labels