Open Lyken17 opened 2 years ago
It seems the file is not under repository.
After temporarliy disabling the test tools/ci_build/build.py#L1718, it raises the following errors
2022-06-10 04:20:46,038 util.run [DEBUG] - Subprocess completed. Return code: 0
2022-06-10 04:20:46,039 util.run [INFO] - Running subprocess in '/Users/ligeng/Workspace/onnxruntime/build/MacOS/RelWithDebInfo'
/Users/ligeng/miniforge3/bin/python3 /Users/ligeng/Workspace/onnxruntime/setup.py bdist_wheel
running bdist_wheel
running build
running build_py
package init file 'onnxruntime/__init__.py' not found (or not a regular file)
error: package directory 'onnxruntime/backend' does not exist
Traceback (most recent call last):
File "/Users/ligeng/Workspace/onnxruntime/tools/ci_build/build.py", line 2726, in <module>
sys.exit(main())
File "/Users/ligeng/Workspace/onnxruntime/tools/ci_build/build.py", line 2669, in main
build_python_wheel(
File "/Users/ligeng/Workspace/onnxruntime/tools/ci_build/build.py", line 2032, in build_python_wheel
run_subprocess(args, cwd=cwd)
File "/Users/ligeng/Workspace/onnxruntime/tools/ci_build/build.py", line 707, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
File "/Users/ligeng/Workspace/onnxruntime/tools/python/util/run.py", line 49, in run
completed_process = subprocess.run(
File "/Users/ligeng/miniforge3/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/ligeng/miniforge3/bin/python3', '/Users/ligeng/Workspace/onnxruntime/setup.py', 'bdist_wheel']' returned non-zero exit status 1.
Weird thing is that I cannot find backend
folder under this repo.
Describe the bug Latest ONNXRuntime failed to build on Macbook M1 Air.
Urgency This is general situation that most Apple Sillion users will meet when trying to use onnxruntime. I would rate this issue as important since more and more mac users are switching to M1 chips.
System information
To Reproduce
Expected behavior
It seems the
onnxruntime_test_python.py
is missing. Did I miss any instructions? Or is this file deleted in previous commits?