-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation. Ninja Error #1002
Comments
Noticed that SharedArray was not installed. But when calling: × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for SharedArray did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. |
I am facing the same issue. Did you find any solution? |
open-mmlab/OpenPCDet$ python setup.py develop /usr/include/stdio.h(195): error: attribute "malloc" does not take arguments /usr/include/stdio.h(217): error: attribute "malloc" does not take arguments /usr/include/stdio.h(254): error: attribute "malloc" does not take arguments /usr/include/stdio.h(279): error: attribute "malloc" does not take arguments /usr/include/stdio.h(288): error: attribute "malloc" does not take arguments /usr/include/stdio.h(297): error: attribute "malloc" does not take arguments /usr/include/stdio.h(303): error: attribute "malloc" does not take arguments /usr/include/stdio.h(309): error: attribute "malloc" does not take arguments /usr/include/stdio.h(824): error: attribute "malloc" does not take arguments /usr/include/stdlib.h(565): error: attribute "malloc" does not take arguments /usr/include/stdlib.h(569): error: attribute "malloc" does not take arguments /usr/include/stdlib.h(797): error: attribute "malloc" does not take arguments 13 errors detected in the compilation of "/opt/sdatmp/lcx/anaconda/envs/open-mmlab/OpenPCDet/pcdet/ops/iou3d_nms/src/iou3d_nms_kernel.cu". The above exception was the direct cause of the following exception: Traceback (most recent call last): I am facing the same issue. Did you find any solution? |
@ZecCheng I also got the same problem. What CUDA and Pytorch are you using, I think the issue can come from the compatible of Pytorch and CUDA are not matched |
Sorry for the late reply but I could not seem to find any solutions. I dual booted my PC and ran via Linux. You could try looking at this issue #681, #681. It gives some suggestions on how one might change the cpp files in order to run it on windows. The main issue is that SpConv does not run on Win but if you use Pointpillars it doesn't use that library so you could also try that. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
I'm trying to set up the but keep getting this extensive error message which i can't seem to resolve.
I have CUDA 11.4 installed on my system and the following venv:
(venv) C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet>pip list
Package Version
ccimport 0.3.7
certifi 2022.5.18.1
charset-normalizer 2.0.12
cumm-cu114 0.2.8
easydict 1.9
fire 0.4.0
idna 3.3
lark 1.1.2
ninja 1.10.2.3
numpy 1.22.4
pccm 0.3.4
Pillow 9.1.1
pip 22.1.2
portalocker 2.4.0
pybind11 2.9.2
pywin32 304
requests 2.28.0
setuptools 62.2.0
six 1.16.0
spconv-cu114 2.1.22
termcolor 1.1.0
tifffile 2022.5.4
torch 1.10.1+cu113
torchvision 0.11.2+cu113
typing_extensions 4.2.0
urllib3 1.26.9
wheel 0.37.1
I'm on windows with a 3060Ti.
The error message occurs when running
python setup.py develop
python == 3.9.13
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase'
being compiled
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\torch/csrc/autograd/profiler_kineto.h(48): note: see reference to class template instantiation 'c10::optional<std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>>' being compiled
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase'
being compiled
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(46): note: see reference to class template instantiation 'c10::optional<std::vector<at::Tensor,std::allocatorat::Tensor>>' being compiled
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(54): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(55): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(56): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(61): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(62): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(63): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(74): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(75): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(76): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(81): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(82): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(83): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(116): error C2131: expression did not evaluate to a constant
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(100): note: failure was caused by a read of a variable outside its lifetime
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(100): note: see usage of 'boxes_num'
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(93): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(),
which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(97): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(98): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(166): error C2131: expression did not evaluate to a constant
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(150): note: failure was caused by a read of a variable outside its lifetime
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(150): note: see usage of 'boxes_num'
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(143): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device().
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(147): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\pcdet\ops\iou3d_nms\src\iou3d_nms.cpp(148): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\utils\cpp_extension.py", line 1717, in _run_ninja_build
subprocess.run(
File "C:\Program Files\Python39\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
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 "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\setup.py", line 34, in
setup(
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_init_.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools\dist.py", line 1224, in run_command
super().run_command(command)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools\command\develop.py", line 34, in run
self.install_for_development()
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools\command\develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools\dist.py", line 1224, in run_command
super().run_command(command)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\utils\cpp_extension.py", line 735, in build_extensions
build_ext.build_extensions(self)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\setuptools_distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\utils\cpp_extension.py", line 708, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\utils\cpp_extension.py", line 1399, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "C:\Users\Theodor Jonsson\Visual_studio_code\Machine_learning\OpenPCDet\env\lib\site-packages\torch\utils\cpp_extension.py", line 1733, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
The text was updated successfully, but these errors were encountered: