Open liangxuejingjing opened 3 years ago
have you ever solve this problem?
Do you have any idea about how to fix this bug? I have try so many method including reinstalling some package, reinstalling cuda 10.2 and repeating compiling, but finally failed. if you solve it plz inform me . Thx a lot
Do you have any idea about how to fix this bug? I have try so many method including reinstalling some package, reinstalling cuda 10.2 and repeating compiling, but finally failed. if you solve it plz inform me . Thx a lot
yes!!!
maybe help you
Processing d:\pythonproject1\pointnet2_pytorch_master\pointnet2_ops_lib
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4 in d:\anaconda\envs\dxtorch1\lib\site-packages (from pointnet2-ops==3.0.0) (1.12.1)
Requirement already satisfied: typing_extensions in d:\anaconda\envs\dxtorch1\lib\site-packages (from torch>=1.4->pointnet2-ops==3.0.0) (4.7.1)
Building wheels for collected packages: pointnet2-ops
Building wheel for pointnet2-ops (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [80 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\pointnet2_ops
copying pointnet2_ops\pointnet2_modules.py -> build\lib.win-amd64-cpython-38\pointnet2_ops
copying pointnet2_ops\pointnet2_utils.py -> build\lib.win-amd64-cpython-38\pointnet2_ops
copying pointnet2_ops_version.py -> build\lib.win-amd64-cpython-38\pointnet2_ops
copying pointnet2_ops__init.py -> build\lib.win-amd64-cpython-38\pointnet2_ops
running egg_info
writing pointnet2_ops.egg-info\PKG-INFO
writing dependency_links to pointnet2_ops.egg-info\dependency_links.txt
writing requirements to pointnet2_ops.egg-info\requires.txt
writing top-level names to pointnet2_ops.egg-info\top_level.txt
reading manifest file 'pointnet2_ops.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'pointnet2_ops_ext-src'
writing manifest file 'pointnet2_ops.egg-info\SOURCES.txt'
running build_ext
building 'pointnet2_ops._ext' extension
Emitting ninja build file D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\build\temp.win-amd64-cpython-38\Release\build.ninja...
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2-ops Running setup.py clean for pointnet2-ops Failed to build pointnet2-ops ERROR: Could not build wheels for pointnet2-ops, which is required to install pyproject.toml-based projects How to solve this problem??
Processing d:\pythonproject1\pointnet2_pytorch_master\pointnet2_ops_lib Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in d:\anaconda\envs\dxtorch1\lib\site-packages (from pointnet2-ops==3.0.0) (1.12.1) Requirement already satisfied: typing_extensions in d:\anaconda\envs\dxtorch1\lib\site-packages (from torch>=1.4->pointnet2-ops==3.0.0) (4.7.1) Building wheels for collected packages: pointnet2-ops Building wheel for pointnet2-ops (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [80 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops\pointnet2_modules.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops\pointnet2_utils.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops_version.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_opsinit.py -> build\lib.win-amd64-cpython-38\pointnet2_ops running egg_info writing pointnet2_ops.egg-info\PKG-INFO writing dependency_links to pointnet2_ops.egg-info\dependency_links.txt writing requirements to pointnet2_ops.egg-info\requires.txt writing top-level names to pointnet2_ops.egg-info\top_level.txt reading manifest file 'pointnet2_ops.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'pointnet2_ops_ext-src' writing manifest file 'pointnet2_ops.egg-info\SOURCES.txt' running build_ext building 'pointnet2_ops._ext' extension Emitting ninja build file D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\build\temp.win-amd64-cpython-38\Release\build.ninja... Traceback (most recent call last): File "", line 2, in File "", line 34, in File "D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\setup.py", line 20, in setup( File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptoolsinit.py", line 103, in setup return distutils.core.setup(**attrs) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\wheel\bdist_wheel.py", line 325, in run self.run_command("build") File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\command\build_ext.py", line 88, in run _build_ext.run(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 345, in run self.build_extensions() File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 765, in build_extensions build_ext.build_extensions(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\command\build_ext.py", line 249, in build_extension _build_ext.build_extension(self, ext) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 548, in build_extension objects = self.compiler.compile( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 738, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 1474, in _write_ninja_file_and_compile_objects _write_ninja_file( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 2014, in _write_ninja_file assert len(sources) > 0 AssertionError [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2-ops Running setup.py clean for pointnet2-ops Failed to build pointnet2-ops ERROR: Could not build wheels for pointnet2-ops, which is required to install pyproject.toml-based projects How to solve this problem??
I am facing this exact same problem. Found no solution yet.
@TowsifAbir Do you found solution for this problem?
The problem I ran into was: ModuleNotFoundError: No module named 'pointnet2_ops'. ubuntu,
Use the following command to solve the problem:
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
reference:https://blog.csdn.net/goodgoodstudy___/article/details/128338442
You can mitigate this error --> fatal error: cuda_runtime_api.h: No such file or directory
In my case: this file did exist in a different location i,e. /usr/include/cuda_runtime_api.h
To verify your header file location, you can use the command: i,e. ls -l /usr/include/cuda_runtime_api.h It should output something similar to >> -rw-r--r-- 1 root root 400643 Apr 11 2020 /usr/include/cuda_runtime_api.h
Finally, you can create a symbolic link to point to the desired directory: sudo ln -sf /usr/include/cuda_runtime_api.h /usr/local/cuda/include/cuda_runtime_api.h
Hi, when I run 'pip install -r requirements.txt',but got many mistakes:Failed to build pointnet2-ops I used the ubuntu20.04, cuda driver 11.1, python3.6, pytorch1.7.1, gcc 9.3.0, please tell me how to deal with...thx
~~~~~~~ compilation terminated. [6/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -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++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/interpolate.h:3, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84~~~~~~~ compilation terminated. [7/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -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++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/ball_query.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84~~~~~~~ compilation terminated. [8/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -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++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/sampling.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84~~~~~~~ compilation terminated. [9/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/bindings.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/bindings.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/bindings.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -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++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/ball_query.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/bindings.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build env=env) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) 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 "", line 1, in
File "/tmp/pip-req-build-5jkb37_5/setup.py", line 38, in
include_package_data=True,
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
depends=ext.depends)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1255, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
ERROR: Command errored out with exit status 1: /home/Jing/anaconda3/envs/SAPIEN/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-5jkb37_5/setup.py'"'"'; file='"'"'/tmp/pip-req-build-5jkb37_5/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-dm7mj6u4/install-record.txt --single-version-externally-managed --compile --install-headers /home/Jing/anaconda3/envs/SAPIEN/include/python3.6m/pointnet2-ops Check the logs for full command output.