Bug 2277097
| Summary: | python3-onnxruntime: warning "Init provider bridge failed" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Felix Schwarz <fschwarz> |
| Component: | onnxruntime | Assignee: | Alejandro Alvarez <a.alvarezayllon> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 40 | CC: | a.alvarezayllon, dherrera |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | onnxruntime-1.16.3-2.fc40 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-05-16 01:51:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
The warning is triggered when "libonnxruntime_providers_shared.so" is not available in "/usr/lib64/python3.12/site-packages/onnxruntime/capi". However the Fedora package ships this library as "/usr/lib64/libonnxruntime_providers_shared.so.1.16.3". A quick workaround is to put a symlink named "libonnxruntime_providers_shared.so" (no version number) in the site-packages directory, pointing to the versioned file in /usr/lib64. FEDORA-2024-5d32ee9e50 (onnxruntime-1.16.3-2.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-5d32ee9e50 FEDORA-2024-5d32ee9e50 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5d32ee9e50` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5d32ee9e50 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-238953b02c (onnxruntime-1.15.1-6.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-238953b02c FEDORA-2024-238953b02c has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-238953b02c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-238953b02c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-5d32ee9e50 (onnxruntime-1.16.3-2.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-238953b02c (onnxruntime-1.15.1-6.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |
Whenever I import the "onnxruntime" Python module, I see a warning: $ python3.12 Python 3.12.2 (main, Feb 21 2024, 00:00:00) [GCC 14.0.1 20240217 (Red Hat 14.0.1-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import onnxruntime as ort 2024-04-25 08:41:18.602143879 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:1983 CreateInferencePybindStateModule] Init provider bridge failed. Reproducible: Always