===========================================================================
=>> Recording filesystem state for prestage... done
=======================<phase: stage >============================
===> Staging for py36-onnxruntime-0.5.1.20191030
===> py36-onnxruntime-0.5.1.20191030 depends on package: py36-numpy>0 - found
===> py36-onnxruntime-0.5.1.20191030 depends on package: py36-six>0 - found
===> py36-onnxruntime-0.5.1.20191030 depends on package: py36-setuptools>0 - found
===> py36-onnxruntime-0.5.1.20191030 depends on file: /usr/local/bin/python3.6 - found
===> Generating temporary packing list
running install
running build
running build_py
creating build/lib
creating build/lib/onnxruntime
copying onnxruntime/__init__.py -> build/lib/onnxruntime
error: package directory 'onnxruntime/backend' does not exist
*** Error code 1
FWIW following command worked for me
./build.sh --config Release --build_shared_lib --parallel --enable_pybind --skip_tests --build_wheel --update --buildThis should generate whl file in the build directory (build/Linux/Release/dist) which can be installed using:pip install onnxruntime-1.7.0-cp38-cp38-linux_x86_64.whlOh, I see.
Doesn’t satisfy your needs.
Please append ‘–enable_pybind’ to that.
Then, when the script is finished, please run setup.py in the build dir. (e.g. ~/onnxruntime/build/Linux/Debug)
–enable_pybind : Enable Python Bindings –build_wheel: Build Python Wheel.
–build_wheel implies --enable_pybind.
If you specified --build_wheel, then you don’t need to run setup.py manually.
I can successfully run it, if the build.sh exit with 0.
This also happens when I first ruin cmake and then make:
There were previously bugs that dealt with the same problem: https://github.com/microsoft/onnxruntime/issues/1737 https://github.com/microsoft/onnxruntime/issues/1453 Also other people had the same problem https://www.gitmemory.com/issue/microsoft/onnxruntime/1229/503739646 So this looks like a legitimate problem.