microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.54k stars 2.91k forks source link

[Build] The Python module fails to build: error: package directory 'onnxruntime/backend' does not exist #22501

Open yurivict opened 1 week ago

yurivict commented 1 week ago

Describe the issue

When I attempt to build it on FreeBSD it fails:

running build
running build_py
error: package directory 'onnxruntime/backend' does not exist
*** Error code 1

This happens with both setup.py and pyproject.toml based builds.

FreeBSD 14.1 Python 3.11

Urgency

No response

Target platform

FreeBSD

Build script

n/a

Error / output

see above

Visual Studio Version

No response

GCC / Compiler Version

No response

skottmckay commented 1 week ago

Did you build the native library first, including specifying --build_wheel?

https://onnxruntime.ai/docs/build/inferencing.html