-
Notifications
You must be signed in to change notification settings - Fork 323
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
Upgrade to ONNX 1.15.0 #2649
Upgrade to ONNX 1.15.0 #2649
Conversation
I was receiving this error only for
The main error is found here: /usr/lib64/python3.9/site-packages/protobuf-4.21.12-py3.9-linux-s390x.egg/google/protobuf/internal/api_implementation.py:109: UserWarning: Selected implementation cpp is not available. After searching this warning which is located in
It seems like building Protobuf from source has known issues of confusing Here are further links which conclude the issue with using |
@gongsu832 @AlexandreEichenberger If you have any questions please feel free to let me know but I spent hours debugging for the build to finally go through successfully. Thanks! |
@@ -34,6 +34,9 @@ RUN distro=$(cat /etc/os-release|grep -Po '(?<=^ID=").*(?=")|(?<=^ID=)[^"].*[^"] | |||
python3 python3-dev python3-distutils python3-numpy \ | |||
python3-pip python3-pytest-xdist python3-setuptools \ | |||
python3-typing-extensions zlib1g-dev && \ | |||
# Use newer version of setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this upgrade of pip and setuptools is required to bypass another error of UNKNOWN Wheel
.
No we cannot remove It's extremely unlikely that a minor version upgrade for one package (onnx) would require changing the implementation of another third party dependent package (protobuf). The error you get is almost certainly due to factor(s) not related to upgrading onnx itself. If you have trouble making it work, I can try to fix it with another PR. |
@gongsu832 According to our git history we did not always have |
You added |
@tungld @AlexandreEichenberger @chentong319 If you have strong feelings for keeping this flag, please let me know what works best for the community. Thanks! :) |
I didn't say We added the And yes, I will have a better solution that will upgrade onnx without requiring protobuf implementation change. |
Of course you will! |
No idea about the impact of --cpp-implementation. Just looked into the setup.py. Could this comment in the code give us any hint?
|
Yeah
When I do a
|
I finally was able to get us to upgrade to ONNX 1.15.0!! YES!! After hours of testing and debugging I found out the problem. Please read below: