Bug 25961 - gst-plugin-scanner: Couldn't g_module_open libpython
Summary: gst-plugin-scanner: Couldn't g_module_open libpython
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-12-26 12:51 CET by Bit Twister
Modified: 2020-01-12 00:53 CET (History)
5 users (show)

See Also:
Source RPM: gstreamer1.0-python-1.16.0-1.mga7
CVE:
Status comment:


Attachments

Description Bit Twister 2019-12-26 12:51:09 CET
Description of problem: mga7

Dec 26 01:55:23 gst-plugin-scan[5858]: Couldn't g_module_open libpython. Reason: /usr/lib64/libpython3.7m.so: cannot open shared object file: No such file or directory

$ locate /usr/lib64/libpython3
/usr/lib64/libpython3.7m.so.1.0


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


How reproducible: Always


Steps to Reproduce:
1. journalctl | grep libpython
2.
3.
Comment 1 Lewis Smith 2019-12-26 21:18:01 CET
Thank you for the alert.
$ ls -l /usr/lib64/libpython3*
-rwxr-xr-x 1 root root 3088720 Tach  1 15:27 /usr/lib64/libpython3.7m.so.1.0*

No registered maintainer for 'python3', so assigning to the Python group.

Assignee: bugsquad => python

Comment 2 David GEIGER 2019-12-27 10:17:45 CET
/usr/lib64/libpython3.7m.so is provided by lib64python3-devel and it is a development file so this issue come not from python3 but from gst-plugin-scan command.

Which package provides gst-plugin-scan?

CC: (none) => geiger.david68210

Comment 3 Bit Twister 2019-12-27 13:15:49 CET
(In reply to David GEIGER from comment #2)
> /usr/lib64/libpython3.7m.so is provided by lib64python3-devel and it is a
> development file so this issue come not from python3 but from
> gst-plugin-scan command.
> 
> Which package provides gst-plugin-scan?

$ get_src_rpm gst-plugin-scan

  Looked for    : gst-plugin-scan
  Using         : /usr/lib64/gstreamer-1.0/gst-plugin-scanner
  Installed rpm : lib64gstreamer1.0_0-1.16.0-2.mga7
  rpm short name: lib64gstreamer1.0_0
  Source rpm   : gstreamer1.0-1.16.0-2.mga7.src.rpm
  Information  : http://gstreamer.freedesktop.org/
  Packager     : wally <wally>
  Summary      : Libraries for GStreamer streaming-media framework
Comment 4 Jani Välimaa 2019-12-29 11:49:48 CET
I would like to get more info about which tool is calling gst-plugin-scan?

CC: (none) => jani.valimaa

Comment 5 Jani Välimaa 2019-12-29 14:37:29 CET
I'm trying to figure out what's the pkg from where the issue is coming.

Do you have gstreamer1.0-python installed? Does the issue go away if gstreamer1.0-python is removed?
Comment 6 Jani Välimaa 2019-12-29 14:58:44 CET
$ rm -rf $HOME/.cache/gstreamer-1.0/registry.x86_64.bin

$ LC_ALL=C.UTF-8 GST_DEBUG=2 gst-inspect-1.0 python

** (gst-plugin-scanner:32155): CRITICAL **: 15:58:03.409: Couldn't g_module_open libpython. Reason: /usr/lib64/libpython3.7m.so: cannot open shared object file: No such file or directory
0:00:00.001772091 32155       0xca20c0 WARN      GST_PLUGIN_LOADING gstplugin.c:528:gst_plugin_register_func: plugin "/usr/lib64/gstreamer-1.0/libgstpython.cpython-37m-x86_64-linux-gnu.so" failed to initialise
No such element or plugin 'python'
Comment 7 Jani Välimaa 2019-12-29 16:29:06 CET
Added a patch to fix hardcoded python3 shared library name.

Please test gstreamer1.0-python-1.16.0-1.1.mga7 from core/updates_testing. Test case is in comment 6.

Source RPM: python3-3.7.5-1.mga7.src.rpm => gstreamer1.0-python-1.16.0-1.mga7
Summary: gst-plugin-scan Couldn't g_module_open libpython => gst-plugin-scanner: Couldn't g_module_open libpython
Assignee: python => qa-bugs

Comment 8 Jani Välimaa 2019-12-29 16:30:24 CET
(In reply to Jani Välimaa from comment #7)
> Please test gstreamer1.0-python-1.16.0-1.1.mga7 from core/updates_testing.
> Test case is in comment 6.

$ rpm -qf $(which gst-inspect-1.0)
gstreamer1.0-tools-1.16.0-2.mga7

gstreamer1.0-tools is needed for the testing.
Comment 9 Jani Välimaa 2019-12-29 16:32:53 CET
(In reply to Jani Välimaa from comment #8)
> (In reply to Jani Välimaa from comment #7)
> > Please test gstreamer1.0-python-1.16.0-1.1.mga7 from core/updates_testing.
> > Test case is in comment 6.
> 
> $ rpm -qf $(which gst-inspect-1.0)
> gstreamer1.0-tools-1.16.0-2.mga7
> 
> gstreamer1.0-tools is needed for the testing.

And make sure that lib(64)python3-devel is not installed.
Comment 10 David GEIGER 2019-12-30 06:22:04 CET
Confirmed that now the fix works on my mga7 for x86_64:

Before:

$ LC_ALL=C.UTF-8 GST_DEBUG=2 gst-inspect-1.0 python

** (gst-plugin-scanner:31268): CRITICAL **: 15:06:37.914: Couldn't g_module_open libpython. Reason: /usr/lib64/libpython3.7m.so: cannot open shared object file: No such file or directory
0:00:00.003081973 31268       0xffb0c0 WARN      GST_PLUGIN_LOADING gstplugin.c:528:gst_plugin_register_func: plugin "/usr/lib64/gstreamer-1.0/libgstpython.cpython-37m-x86_64-linux-gnu.so" failed to initialise
No such element or plugin 'python'
$



After:

$ LC_ALL=C.UTF-8 GST_DEBUG=2 gst-inspect-1.0 python
Plugin Details:
  Name                     python
  Description              loader for plugins written in python
  Filename                 /usr/lib64/gstreamer-1.0/libgstpython.cpython-37m-x86_64-linux-gnu.so
  Version                  1.16.0
  License                  LGPL
  Source module            gst-python
  Binary package           GStreamer GObject Introspection overrides for Python 
  Origin URL               http://gstreamer.freedesktop.org
$
Comment 11 Bit Twister 2019-12-30 06:52:16 CET
after gstreamer install, removing my workaround symlink. login, 
journalctl | grep libpython did not show a problem
and above test procedure works as shown.
Comment 12 Thomas Andrews 2020-01-09 23:49:08 CET
Used the QArepo tool to update to gstreamer1.0-python-1.16.0-1.1.mga7. No installation issues. 

Since David Geiger and Bit Twister both report that the issue is fixed, and I had a clean install, I'm giving this a 64-bit OK.

Whiteboard: (none) => MGA7-64-OK
CC: (none) => andrewsfarm

Thomas Backlund 2020-01-11 23:59:27 CET

CC: (none) => tmb, sysadmin-bugs
Keywords: (none) => advisory, validated_update

Comment 13 Mageia Robot 2020-01-12 00:53:21 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0017.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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