-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] [Alpine linux] Microsoft.ML.OnnxRuntime.OnnxRuntimeException : [ErrorCode:RuntimeException] Exception caught: No error information #17986
Comments
I have ran ldd command which pointed me to a missing dependency:
After some googling, I have added gcompat package to the docker image and the error during the test execution is now different: Error Message: |
The Linux distro is not supported by the prebuilt binaries. You may either build the binary by yourself on that Linux distro, or consider using Mariner. I highly recommend Mariner. Sorry I will close this issue as it is not in our roadmap. |
ok, thanks - I understand it's getting closed as not planned, but what I don't understand is 'The linux distro is not supported by the prebuilt binaries'. What are the prebuilt binaries, and then what is the point of this package |
No. Packages at alpinelinux.org are not published/maintained by us. I was saying the packages at nuget.org/pypi.org and https://github.com/microsoft/onnxruntime/releases . |
Describe the issue
One of the teams in my company started using Microsoft.ML.OnnxRuntime nuget v 1.16 for some internal processings.
They produce a nuget which our .net core service consumes.
We have a CI pipeline in gitlab where we use alpine linux containers in the runner of Build and Test stage.
Unfortunately, the Test stage (
dotnet test
) fails with the following error:These tests running in VS locally on a Windows machine work OK, its only the gitlab pipeline that fails.
I have then added this package to the docker container https://pkgs.alpinelinux.org/package/edge/testing/x86_64/onnxruntime, as well as required dependencies, so the Dockerfile has these instructions:
Unfortunately, it doesn't change a thing.
I have added a post build target to copy the shared obj lib to the bin folder, but also no luck
Urgency
High, cannot roll out the component which uses Onnxruntime
Target platform
alpine linux
Build script
Described in the description
Error / output
Error Message:
System.TypeInitializationException : The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
----> System.DllNotFoundException : Unable to load shared library 'onnxruntime' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: Error loading shared library libonnxruntime: No such file or directory
Stack Trace:
at Microsoft.ML.OnnxRuntime.SessionOptions..ctor()
at Microsoft.ML.OnnxRuntime.InferenceSession..ctor(String modelPath)
Visual Studio Version
2022
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: