lamiastella

torch mesh intersect error

Jan 8th, 2021 (edited)
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.72 KB | None | 0 0
  1. [13196:3149 0:2054] 08:38:15 Fri Jan 08 [mona@goku:pts/1 +1] ~/research/code/smplify-x/torch-mesh-isect
  2. $ pip install .
  3. Processing /home/mona/research/code/smplify-x/torch-mesh-isect
  4. 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)
  5. 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)
  6. 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)
  7. Building wheels for collected packages: mesh-intersection
  8. Building wheel for mesh-intersection (setup.py) ... error
  9. ERROR: Command errored out with exit status 1:
  10. 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
  11. cwd: /tmp/pip-req-build-ehn49jhf/
  12. Complete output (36 lines):
  13. running bdist_wheel
  14. /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.
  15. warnings.warn(msg.format('we could not find ninja.'))
  16. running build
  17. running build_py
  18. creating build
  19. creating build/lib.linux-x86_64-3.8
  20. creating build/lib.linux-x86_64-3.8/mesh_intersection
  21. copying mesh_intersection/bvh_search_tree.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  22. copying mesh_intersection/filter_faces.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  23. copying mesh_intersection/loss.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  24. copying mesh_intersection/__init__.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  25. running build_ext
  26. building 'bvh_cuda' extension
  27. creating build/temp.linux-x86_64-3.8
  28. creating build/temp.linux-x86_64-3.8/src
  29. 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
  30. In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149,
  31. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
  32. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
  33. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
  34. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
  35. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
  36. from src/bvh.cpp:18:
  37. /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
  38. 84 | #pragma omp parallel for if ((end - begin) >= grain_size)
  39. |
  40. In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/Device.h:3,
  41. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
  42. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:6,
  43. from src/bvh.cpp:18:
  44. /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
  45. 10 | #include <Python.h>
  46. | ^~~~~~~~~~
  47. compilation terminated.
  48. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  49. ----------------------------------------
  50. ERROR: Failed building wheel for mesh-intersection
  51. Running setup.py clean for mesh-intersection
  52. Failed to build mesh-intersection
  53. Installing collected packages: mesh-intersection
  54. Running setup.py install for mesh-intersection ... error
  55. ERROR: Command errored out with exit status 1:
  56. 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
  57. cwd: /tmp/pip-req-build-ehn49jhf/
  58. Complete output (36 lines):
  59. running install
  60. running build
  61. running build_py
  62. creating build
  63. creating build/lib.linux-x86_64-3.8
  64. creating build/lib.linux-x86_64-3.8/mesh_intersection
  65. copying mesh_intersection/bvh_search_tree.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  66. copying mesh_intersection/filter_faces.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  67. copying mesh_intersection/loss.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  68. copying mesh_intersection/__init__.py -> build/lib.linux-x86_64-3.8/mesh_intersection
  69. running build_ext
  70. /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.
  71. warnings.warn(msg.format('we could not find ninja.'))
  72. building 'bvh_cuda' extension
  73. creating build/temp.linux-x86_64-3.8
  74. creating build/temp.linux-x86_64-3.8/src
  75. 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
  76. In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149,
  77. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
  78. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
  79. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
  80. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
  81. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
  82. from src/bvh.cpp:18:
  83. /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
  84. 84 | #pragma omp parallel for if ((end - begin) >= grain_size)
  85. |
  86. In file included from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/Device.h:3,
  87. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
  88. from /home/mona/venv/smplifyx/lib/python3.8/site-packages/torch/include/torch/extension.h:6,
  89. from src/bvh.cpp:18:
  90. /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
  91. 10 | #include <Python.h>
  92. | ^~~~~~~~~~
  93. compilation terminated.
  94. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  95. ----------------------------------------
  96. 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.
  97.  
Add Comment
Please, Sign In to add comment