Bug 2277097 - python3-onnxruntime: warning "Init provider bridge failed"
Summary: python3-onnxruntime: warning "Init provider bridge failed"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: onnxruntime
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alejandro Alvarez
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-25 06:45 UTC by Felix Schwarz
Modified: 2024-05-18 01:26 UTC (History)
2 users (show)

Fixed In Version: onnxruntime-1.16.3-2.fc40
Clone Of:
Environment:
Last Closed: 2024-05-16 01:51:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Felix Schwarz 2024-04-25 06:45:44 UTC
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

Comment 1 Felix Schwarz 2024-04-25 07:23:06 UTC
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.

Comment 2 Fedora Update System 2024-05-07 19:24:10 UTC
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

Comment 3 Fedora Update System 2024-05-08 02:22:00 UTC
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.

Comment 4 Fedora Update System 2024-05-09 13:40:10 UTC
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

Comment 5 Fedora Update System 2024-05-10 01:50:46 UTC
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.

Comment 6 Fedora Update System 2024-05-16 01:51:36 UTC
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.

Comment 7 Fedora Update System 2024-05-18 01:26:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.