Bug 1900661

Summary: RuntimeError: Unable to load library libROOTPythonizations3_9
Product: [Fedora] Fedora Reporter: nvwarr
Component: rootAssignee: Mattias Ellert <mattias.ellert>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: mattias.ellert
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: root-6.22.06-1.fc32 root-6.22.06-1.fc33 root-6.22.06-1.el7 root-6.22.06-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-27 12:30:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description nvwarr 2020-11-23 13:49:00 UTC
Description of problem:

python3-root doesn't find the .so library libROOTPythonizations

Version-Release number of selected component (if applicable):

python3-root-6.22.04-1.fc33.x86_64 (from updates-testing)


How reproducible:

Always

Steps to Reproduce:
1. Start python3
2. import ROOT
3. disp = ROOT.TPyDispatcher


Actual results:


Error in <TUnixSystem::FindDynamicLibrary>: libROOTPythonizations3_9[.so | .dll | .dylib | .sl | .dl | .a] does not exist in .:/usr/lib64/root::/usr/lib64
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.9/site-packages/ROOT/_facade.py", line 295, in TPyDispatcher
    load_library('libROOTPythonizations{}_{}'.format(major, minor))
  File "/usr/lib64/python3.9/site-packages/cppyy/__init__.py", line 206, in load_library
    raise RuntimeError("Unable to load library "+name)
RuntimeError: Unable to load library libROOTPythonizations3_9

Expected results:

It should load /usr/lib64/python3.9/site-packages/libROOTPythonizations3_9.cpython-39-x86_64-linux-gnu.so but it is looking for the wrong filename in the wrong directory

Additional info:

A piece of our in-house software uses TPyDispatcher and this was broken in root 6.22/00 and 6.22/02, but, according to upstream, fixed in 6.22/04. With the first two versions I get "Failed to get attribute TPyDispatcher from ROOT". That is why I was testing the version from updates-testing.

The version from updates-testing (6.22/04) almost works and I have a simple workaround to make it work completely.

The remaining problem (without my workaround) is that it doesn't find the libROOTPythonizations file. Firstly, it is looking for libROOTPythonizations3_9.so not libROOTPythonizations3_9.cpython-39-x86_64-linux-gnu.so and secondly it is not looking in the right directory.

The workaround is just:

cd /usr/share/root/lib ; sudo ln -s /usr/lib64/python3.9/site-packages/libROOTPythonizations3_9.cpython-39-x86_64-linux-gnu.so libROOTPythonizations3_9.so

and then everything works fine.

Comment 1 nvwarr 2020-11-23 13:52:25 UTC
Just noticed that /usr/share/root/lib is actually a workaround on my system for another issue. It is just a symbolic link to /usr/lib64/root.

Comment 2 Fedora Update System 2020-11-26 23:10:26 UTC
FEDORA-2020-cd261089aa has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-cd261089aa

Comment 3 Fedora Update System 2020-11-26 23:10:33 UTC
FEDORA-2020-026af8e98e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-026af8e98e

Comment 4 Fedora Update System 2020-11-26 23:10:34 UTC
FEDORA-2020-026af8e98e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-026af8e98e

Comment 5 Fedora Update System 2020-11-26 23:10:45 UTC
FEDORA-EPEL-2020-9badca21dd has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-9badca21dd

Comment 6 Fedora Update System 2020-11-26 23:10:52 UTC
FEDORA-EPEL-2020-1022859854 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-1022859854

Comment 7 Fedora Update System 2020-11-27 02:09:45 UTC
FEDORA-2020-cd261089aa has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-cd261089aa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-cd261089aa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2020-11-27 02:18:22 UTC
FEDORA-2020-026af8e98e has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-026af8e98e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-026af8e98e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-11-27 02:28:30 UTC
FEDORA-EPEL-2020-1022859854 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-1022859854

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2020-11-27 02:30:07 UTC
FEDORA-EPEL-2020-9badca21dd has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-9badca21dd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 nvwarr 2020-11-27 12:30:33 UTC
Yes, that fixes it. Thanks for fixing it so quickly. Great work!

Comment 12 Fedora Update System 2020-11-29 21:49:22 UTC
FEDORA-2020-cd261089aa has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-cd261089aa

Comment 13 Fedora Update System 2020-11-29 21:49:59 UTC
FEDORA-2020-026af8e98e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-026af8e98e

Comment 14 Fedora Update System 2020-11-29 21:50:30 UTC
FEDORA-EPEL-2020-9badca21dd has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-9badca21dd

Comment 15 Fedora Update System 2020-11-29 21:51:09 UTC
FEDORA-EPEL-2020-1022859854 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-1022859854

Comment 16 Fedora Update System 2020-11-30 01:24:57 UTC
FEDORA-2020-026af8e98e has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-026af8e98e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-026af8e98e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2020-11-30 01:41:21 UTC
FEDORA-EPEL-2020-9badca21dd has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-9badca21dd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2020-11-30 01:41:24 UTC
FEDORA-EPEL-2020-1022859854 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-1022859854

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2020-11-30 01:47:56 UTC
FEDORA-2020-cd261089aa has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-cd261089aa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-cd261089aa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2020-12-08 01:36:51 UTC
FEDORA-2020-026af8e98e has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2020-12-08 01:46:42 UTC
FEDORA-2020-cd261089aa has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2020-12-15 02:08:32 UTC
FEDORA-EPEL-2020-1022859854 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2020-12-15 02:09:04 UTC
FEDORA-EPEL-2020-9badca21dd has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.