[13196:3149 0:2054] 08:38:15 Fri Jan 08 [mona@goku:pts/1 +1] ~/research/code/smplify-x/torch-mesh-isect $ pip install . Processing /home/mona/research/code/smplify-x/torch-mesh-isect Requirement already satisfied: torch>=1.0.1 in /home/mona/venv/smplifyx/lib/python3.8/site-packages (from mesh-intersection==0.1.0) (1.7.1) Requirement already satisfied: typing-extensions in /home/mona/venv/smplifyx/lib/python3.8/site-packages (from torch>=1.0.1->mesh-intersection==0.1.0) (3.7.4.3) Requirement already satisfied: numpy in /home/mona/venv/smplifyx/lib/python3.8/site-packages (from torch>=1.0.1->mesh-intersection==0.1.0) (1.19.5) Building wheels for collected packages: mesh-intersection Building wheel for mesh-intersection (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/mona/venv/smplifyx/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ehn49jhf/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ehn49jhf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-5d2ubl5g cwd: /tmp/pip-req-build-ehn49jhf/ Complete output (36 lines): running bdist_wheel /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/utils/cpp_extension.py:352: 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-3.8 creating build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/bvh_search_tree.py -> build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/filter_faces.py -> build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/loss.py -> build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/__init__.py -> build/lib.linux-x86_64-3.8/mesh_intersection running build_ext building 'bvh_cuda' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/TH -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/THC -Iinclude -I/home/mona/NVIDIA_CUDA-11.2_Samples/common/inc/ -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/TH -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/THC -I/home/mona/venv/smplifyx/include -I/usr/include/python3.8 -c src/bvh.cpp -o build/temp.linux-x86_64-3.8/src/bvh.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=bvh_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from src/bvh.cpp:18: /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 | #pragma omp parallel for if ((end - begin) >= grain_size) | In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/Device.h:3, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:6, from src/bvh.cpp:18: /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/python_headers.h:10:10: fatal error: Python.h: No such file or directory 10 | #include | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for mesh-intersection Running setup.py clean for mesh-intersection Failed to build mesh-intersection Installing collected packages: mesh-intersection Running setup.py install for mesh-intersection ... error ERROR: Command errored out with exit status 1: command: /home/mona/venv/smplifyx/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ehn49jhf/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ehn49jhf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-46aixtki/install-record.txt --single-version-externally-managed --compile --install-headers /home/mona/venv/smplifyx/include/site/python3.8/mesh-intersection cwd: /tmp/pip-req-build-ehn49jhf/ Complete output (36 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/bvh_search_tree.py -> build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/filter_faces.py -> build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/loss.py -> build/lib.linux-x86_64-3.8/mesh_intersection copying mesh_intersection/__init__.py -> build/lib.linux-x86_64-3.8/mesh_intersection running build_ext /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/utils/cpp_extension.py:352: 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.')) building 'bvh_cuda' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/TH -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/THC -Iinclude -I/home/mona/NVIDIA_CUDA-11.2_Samples/common/inc/ -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/TH -I/home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/THC -I/home/mona/venv/smplifyx/include -I/usr/include/python3.8 -c src/bvh.cpp -o build/temp.linux-x86_64-3.8/src/bvh.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=bvh_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from src/bvh.cpp:18: /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 | #pragma omp parallel for if ((end - begin) >= grain_size) | In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/Device.h:3, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8, from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:6, from src/bvh.cpp:18: /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/python_headers.h:10:10: fatal error: Python.h: No such file or directory 10 | #include | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/mona/venv/smplifyx/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ehn49jhf/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ehn49jhf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-46aixtki/install-record.txt --single-version-externally-managed --compile --install-headers /home/mona/venv/smplifyx/include/site/python3.8/mesh-intersection Check the logs for full command output.