Pointnet2_PyTorch
Pointnet2_PyTorch copied to clipboard
Error python setup.py build_ext --inplace
Hello, I have an issue building the project. This is the command line and the generated error message.
Thanks in advance, Sebastian
system:
win10
CUDA 9.0 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017 Cuda compilation tools, release 9.0, V9.0.176
MSVC C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>cl Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. (no environmental variables)
Pytorch 1.0.1 (installed via PIP)
Error Messages:
when i run python setup.py build_ext --inplace
... running build_ext C:\python36\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die angegebene Datei nicht finden warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'pointnet2._ext' extension
when i run python setup.py install
File "C:\python36\lib\distutils\command\build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "C:\python36\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "C:\python36\lib\site-packages\setuptools\command\build_ext.py", line 199, in build_extension _build_ext.build_extension(self, ext) File "C:\python36\lib\distutils\command\build_ext.py", line 558, in build_extension target_lang=language) File "C:\python36\lib\distutils\ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "C:\python36\lib\distutils_msvccompiler.py", line 501, in link build_temp = os.path.dirname(objects[0]) IndexError: list index out of range
I have not tested building this on Windows and I don't have access to a windows machine to debug this on, so I can't be of much help. If you figure out what needs to change to get things to build on windows, I'd happily accept that PR.
I also faced issue in setup.py when building setup.py running build_ext building 'pointnet2._ext' extension gcc -pthread -B /mnt/disks/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/mnt/disks/user/anaconda3/lib/python3.6/site-packages/torch/lib/include -I/mnt/disks/user/anaconda3/lib/python3.6/site-packages/torch/lib/include/TH -I/mnt/disks/user/anaconda3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/mnt/disks/user/anaconda3/include/python3.6m -c pointnet2/_ext-src/src/bindings.cpp -o build/temp.linux-x86_64-3.6/pointnet2/_ext-src/src/bindings.o -O2 -Ipointnet2/_ext-src/include -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from pointnet2/_ext-src/src/bindings.cpp:1:0: pointnet2/_ext-src/include/ball_query.h:2:10: fatal error: torch/extension.h: No such file or directory #include <torch/extension.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1
What version of pytorch are you using? master requires pytorch>=1.0
. If you are on pytorch>=1.0
, then there seems to be an issue with your pytorch install and I'd suggest re-installing.
Any update on this issue? I've been having the same one with pytorch=1.2 and I've already tried resetting up my anaconda environment twice to reset my pytorch installation
Same issue here with pytorch=1.1, any suggestions?
Same problem pytorch 1.4 build_temp = os.path.dirname(objects[0]) IndexError: list index out of range in msvccompiler.py line 502
I have a problem. The detailes are followed. I am try python setup.py build_ext --inplace, that ran into a bud RuntimeError: Error compiling objects for extension Ubuntu 18.04, cuda 11.0 pytorch 1.7.0, who knows why
I have a problem. The detailes are followed. I am try python setup.py build_ext --inplace, that ran into a bud RuntimeError: Error compiling objects for extension Ubuntu 18.04, cuda 11.0 pytorch 1.7.0, who knows why
I have the same problem as you, have you solve it?