NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.43k stars 360 forks source link

MinkowskiEngine installation error! #506

Closed samanemami closed 1 year ago

samanemami commented 1 year ago

Describe the bug

I went all through the previous issues regarding the installation error. But I believe this error is unique and I could not install the library!


To Reproduce


pip install MinkowskiEngine

Expected behavior

clear code to tell me what is happening or an installation


Desktop (please complete the following information):

Preparing metadata (setup.py) ... done Requirement already satisfied: torch in ./.venv/lib/python3.6/site-packages (from MinkowskiEngine) (1.10.2) Requirement already satisfied: numpy in ./.venv/lib/python3.6/site-packages (from MinkowskiEngine) (1.19.5) Requirement already satisfied: dataclasses in ./.venv/lib/python3.6/site-packages (from torch->MinkowskiEngine) (0.8) Requirement already satisfied: typing-extensions in ./.venv/lib/python3.6/site-packages (from torch->MinkowskiEngine) (4.1.1) Using legacy 'setup.py install' for MinkowskiEngine, since package 'wheel' is not installed. Installing collected packages: MinkowskiEngine Running setup.py install for MinkowskiEngine ... error ERROR: Command errored out with exit status 1: command: /.venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/setup.py'"'"'; file='"'"'/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-k5gezovk/install-record.txt --single-version-externally-managed --compile --install-headers /venv/include/site/python3.6/MinkowskiEngine cwd: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/ Complete output (107 lines): No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' WARNING: Skipping MinkowskiEngine as it is not installed. /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/setup.py:129: UserWarning: torch.cuda.is_available() is False. MinkowskiEngine will compile with CPU_ONLY. Please use --force_cuda to compile with CUDA. "torch.cuda.is_available() is False. MinkowskiEngine will compile with CPU_ONLY. Please use --force_cuda to compile with CUDA."

| WARNING: CPU_ONLY build set  |
--------------------------------

Using BLAS=openblas
Using the default compiler
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiCommon.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiNonlinearity.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiCoordinateManager.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiUnion.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/diagnostics.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiChannelwiseConvolution.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiFunctional.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiConvolution.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiNetwork.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiPooling.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/sparse_matrix_functions.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiInterpolation.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiTensorField.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiNormalization.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiOps.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiBroadcast.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/__init__.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiSparseTensor.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiPruning.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiKernelGenerator.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
copying ./MinkowskiEngine/MinkowskiTensor.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine
creating build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/collation.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/init.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/gradcheck.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/summary.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/coords.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/__init__.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/quantization.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
copying ./MinkowskiEngine/utils/torchsummary.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/utils
creating build/lib.linux-x86_64-3.6/MinkowskiEngine/modules
copying ./MinkowskiEngine/modules/resnet_block.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/modules
copying ./MinkowskiEngine/modules/senet_block.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/modules
copying ./MinkowskiEngine/modules/__init__.py -> build/lib.linux-x86_64-3.6/MinkowskiEngine/modules
running build_ext
/venv/lib64/python3.6/site-packages/torch/utils/cpp_extension.py:381: 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.'))
/venv/lib64/python3.6/site-packages/torch/utils/cpp_extension.py:323: UserWarning:

                               !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 5.0 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 5 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                              !! WARNING !!

  warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
building 'MinkowskiEngineBackend._C' extension
C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC

creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/tmp
creating build/temp.linux-x86_64-3.6/tmp/pip-install-_9kkqokw
creating build/temp.linux-x86_64-3.6/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a
creating build/temp.linux-x86_64-3.6/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src
creating build/temp.linux-x86_64-3.6/pybind
compile options: '-I/venv/lib64/python3.6/site-packages/torch/include -I/venv/lib64/python3.6/site-packages/torch/include/torch/csrc/api/include -I/venv/lib64/python3.6/site-packages/torch/include/TH -I/venv/lib64/python3.6/site-packages/torch/include/THC -I/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src -I/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/3rdparty -I/venv/include -I/usr/include/python3.6m -c'
extra options: 'cxx nvcc'
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/coordinate_map_manager.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/math_functions_cpu.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/local_pooling_cpu.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/local_pooling_transpose_cpu.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/convolution_transpose_cpu.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/convolution_cpu.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/global_pooling_cpu.cpp
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/broadcast_cpu.cpp
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/pruning_cpu.cpp
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/interpolation_cpu.cpp
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/direct_max_pool.cpp
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/quantization.cpp
gcc: pybind/minkowski.cpp
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
gcc: error: unrecognized command line option ‘-std=c++14’
error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/venv/lib64/python3.6/site-packages/torch/include -I/venv/lib64/python3.6/site-packages/torch/include/torch/csrc/api/include -I/venv/lib64/python3.6/site-packages/torch/include/TH -I/venv/lib64/python3.6/site-packages/torch/include/THC -I/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src -I/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/3rdparty -I/venv/include -I/usr/include/python3.6m -c /tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/local_pooling_transpose_cpu.cpp -o build/temp.linux-x86_64-3.6/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/src/local_pooling_transpose_cpu.o -fopenmp -O3 -DCPU_ONLY -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 -std=c++14" failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/setup.py'"'"'; file='"'"'/tmp/pip-install-_9kkqokw/minkowskiengine_b6f367eb36444ee5871efdb65cbb503a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-k5gezovk/install-record.txt --single-version-externally-managed --compile --install-headers /venv/include/site/python3.6/MinkowskiEngine Check the logs for full command output. (.venv) bash-4.2$