skyhehe123 / VoxSeT

Voxel Set Transformer: A Set-to-Set Approach to 3D Object Detection from Point Clouds (CVPR 2022)
MIT License
194 stars 19 forks source link

subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1 #14

Open jiangtao129 opened 2 years ago

jiangtao129 commented 2 years ago

when i building your code with 'python setup.py build_ext --inplace', the CalledProcessError is happened, as

ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/sl/anaconda3/envs/py3.7/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1672, in _run_ninja_build
    env=env)
  File "/home/sl/anaconda3/envs/py3.7/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

Google's suggestion is that this problem is related to the pytorch version. You need to reduce the pytorch version to below 1.5.0. But your code need PyTorch 1.9 or higher.

How can I solve this problem? Could you please give me the suggestions? Looking forward to your reply.

my Environment Linux (tested on Ubuntu 18.04) Python 3.7 PyTorch 1.9 .1 CUDA 10.2