-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Alpine Linux support #2909
Comments
Any hint what we should do? |
Sadly I am not sure why manylinux for onnxruntime does not include support for Alpine Linux, but here are steps to quickly reproduce the error and some additional info. Why Alpine Linux?
Build Docker image using Python version I am happy to provide/try anything. At the moment I am trying to compile from source. |
Unfortunately, Alpine is based on musl libc, as opposed glibc, the GNU standard C library, which is used by most Linux distros and supported by Detailed musl/glibc comparisons could be found here:
Until Alpine Linux wheel support is added, installing wheels on Alpine will have to fall back to building the wheel from source, which will probably require support in the FYI, I created a docker image for building onnxruntime from source on Alpine 3.11 (python 3.8.2, gcc 9.2.0) - perhaps it could be useful: Dockerfile. Some minor tweaking was required to overcome some build and dependency issues, but besides that the C++ build itself was very smooth. |
@shaharv Thanks for the amazing explanation and the Dockerfile! You rock! |
@Pavel-Konarik: May I suggest you reopen this issue, and take a look at pypa/manylinux#37 (comment)? |
Once we get musl support from pypa/manylinux, cibuildwheel and auditwheel tools, I can help add it to our packaging pipeline. |
auditwheel 5.0.0 added musl support on 2021-09-18 (also manylinux), cibuildwheel 2.2.0 did so on 2021-10-22. |
any update on this? still failed |
Sorry the work is not started yet. |
Hello, any update on this? I met similar problem on Alpine Linux to deploy ML on java server |
+1 Facing exactly this same issue in alpine docker image running my java server app. ldd libonnxruntime.so |
We don't have prebuilt packages for Alpine. At this moment you still need to build it by yourself. People I know in this dev team do not have experience on Alpine, so we don't know how to do it. |
See testing/onnxruntime, testing/onnxruntime-dev and testing/py3-onnxruntime are now available. |
Excellent news. I installed these packages on a postmarketOS phone, added Larynx and get very good speech output from this text-to-speech system. Maybe someone can close this issue? |
+1 |
Is your feature request related to a problem? Please describe.
onnxruntime-1.1.1-cp36-cp36m-manylinux1_x86_64.whl is not supported on Alpine 3.11
System information
1.1.1
Describe the solution you'd like
Include support for Alpine Linux in manylinux wheel so
pip install onnxruntime
worksDescribe alternatives you've considered
Building from source
Additional context
ERROR: onnxruntime-1.1.1-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.
The text was updated successfully, but these errors were encountered: