onnx-tensorrt
onnx-tensorrt copied to clipboard
Help ME! make error ! (protoc , python not found error)
Python3.6 TRT 7.0.0 CUDA 10.0 CUDNN 7.5 Ubuntu 18.04
I found https://github.com/onnx/onnx-tensorrt/issues/595 showed someone solved the problem.
But I still have the same problem "/bin/sh: 1: python: not found"...
$cmake ..
...
...
-- Protobuf compiler : /usr/local/bin/protoc
-- Protobuf includes : /usr/local/include
-- Protobuf libraries : /usr/local/lib/libprotobuf.so;-lpthread
-- BUILD_ONNX_PYTHON : OFF
-- Found TensorRT headers at /usr/include/x86_64-linux-gnu
-- Find TensorRT libs at /usr/lib/x86_64-linux-gnu/libnvinfer.so;/usr/lib/x86_64-linux-gnu/libnvinfer_plugin.so;/usr/lib/x86_64-linux-gnu/libmyelin.so
-- Found TENSORRT: /usr/include/x86_64-linux-gnu
-- Configuring done
-- Generating done
-- Build files have been written to: /workspace/CenterNet-TensorRT/onnx-tensorrt/build
[ 3%] Running gen_proto.py on onnx/onnx.in.proto
**/bin/sh: 1: python: not found
third_party/onnx/CMakeFiles/gen_onnx_proto.dir/build.make:80: recipe for target 'third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto' failed
make[2]: *** [third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto] Error 127
CMakeFiles/Makefile2:350: recipe for target 'third_party/onnx/CMakeFiles/gen_onnx_proto.dir/all' failed
make[1]: *** [third_party/onnx/CMakeFiles/gen_onnx_proto.dir/all] Error 2
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2**
XXXX:/workspace/CenterNet-TensorRT/onnx-tensorrt/build# echo ${PATH}
/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
XXXX:/workspace/CenterNet-TensorRT/onnx-tensorrt/build# find /usr -name 'protoc'
/usr/local/bin/protoc
/usr/local/lib/python3.6/dist-packages/torch/bin/protoc
XXXX:/workspace/CenterNet-TensorRT/onnx-tensorrt/build# find /workspace/ -name 'gen_proto.py'
/workspace/TensorRT/parsers/onnx/third_party/onnx/onnx/gen_proto.py
/workspace/TensorRT-CenterNet/onnx-tensorrt/third_party/onnx/onnx/gen_proto.py
/workspace/CenterNet-TensorRT/onnx-tensorrt/third_party/onnx/onnx/gen_proto.py
/workspace/pytorch-0.4.1/third_party/onnx/onnx/gen_proto.py
/workspace/pytorch-0.4.1/third_party/onnx-tensorrt/third_party/onnx/onnx/gen_proto.py
Looks like python cannot be found, can you check that it's in your PATH?