-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state' #109
Comments
Thanks for your issue! It looks like openmp is missing: "Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib". After googling I find it is a prerequisite of onnxruntime on macos: https://www.onnxruntime.ai/docs/get-started/install.html. Could you please run Thanks! |
The latest onnx-simplifier depends on onnxruntime-noopenmp instead of onnxruntime so that openmp is not needed anymore :D |
It's so bad that onnxruntime-noopenmp doesn't have a macos version :| Reverted |
@daquexian can we raise an issue on the onnxruntime-noopenmp repo for macos support? |
@glenn-jocher according to microsoft/onnxruntime#6511, there will be a macos version in the next release |
@daquexian oh, perfect! Let's wait a bit then and revisit when macos support arrives :) |
Unable to import
onnxsim
afterpip install onnx-simplifier
with Python 3.8.0. We are attempting to integrate it into our YOLOv5 ONNX export workflow ultralytics/yolov5#1597Input:
Output:
The text was updated successfully, but these errors were encountered: