Bug 2054623 - * (gst-plugin-scanner:63004): CRITICAL **: 11:48:27.011: Couldn't g_module_open libpython. Reason: /usr/lib64/libpython3.10.so: cannot open shared object file: No such file or directory [NEEDINFO]
Summary: * (gst-plugin-scanner:63004): CRITICAL **: 11:48:27.011: Couldn't g_module_op...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gstreamer1
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Wim Taymans
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: MultimediaSIG
TreeView+ depends on / blocked
 
Reported: 2022-02-15 11:05 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2024-03-07 10:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:
dominik: needinfo? (wtaymans)


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2022-02-15 11:05:13 UTC
Description of problem:
It looks like either gst-plugin-scanner is looking for libpython with a wrong filename or libpython3.10.so symlink should be moved from python3-devel to python3-libs.

Version-Release number of selected component (if applicable):
1.20.0-1.fc35

How reproducible:
Always

Steps to Reproduce:
1. rm -v $HOME/.cache/gstreamer-1.0/registry.x86_64.bin
2. GST_DEBUG=2 gst-inspect-1.0 python

Actual results:
...
** (gst-plugin-scanner:63325): CRITICAL **: 11:57:01.421: Couldn't g_module_open libpython. Reason: /usr/lib64/libpython3.10.so: cannot open shared object file: No such file or directory
...

Expected results:
...
Plugin Details:
  Name                     python
  Description              loader for plugins written in python
  Filename                 /usr/lib64/gstreamer-1.0/libgstpython.so
  Version                  1.20.0
  License                  LGPL
  Source module            gst-python
  Binary package           GStreamer Python
  Origin URL               http://gstreamer.freedesktop.org

Additional info:

python3-libs seems to carry libpython3.so, but not libpython3.10.so. The latter is in python3-devel only. On the other hand, python2.7 does carry libpython2.7.so.

$ ls -l /usr/lib64/libpython*
lrwxrwxrwx. 1 root root      19 Sep 20 19:40 /usr/lib64/libpython2.7.so -> libpython2.7.so.1.0
-rwxr-xr-x. 1 root root 1904736 Sep 20 19:41 /usr/lib64/libpython2.7.so.1.0
-rwxr-xr-x. 1 root root 3534368 Jan 17 19:27 /usr/lib64/libpython3.10.so.1.0
-rwxr-xr-x. 1 root root   15024 Jan 17 19:27 /usr/lib64/libpython3.so

Similar bug in Mageia: https://bugs.mageia.org/show_bug.cgi?id=25961

Comment 1 Dominik 'Rathann' Mierzejewski 2022-05-22 17:17:56 UTC
Ping?

Comment 2 Ben Cotton 2022-11-29 17:53:39 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Dominik 'Rathann' Mierzejewski 2022-12-02 10:31:42 UTC
Still reproducible. Is gstreamer1 maintained?

Comment 4 Miro Hrončok 2023-01-12 12:17:51 UTC
python2.7 does carry all the -devel content, so it is not a good example.

My understanding of .so libraries is that the unversioned symbolic link belongs to the devel package and other software that dlopens or links to should explicitly do so with libpython3.11.so.1.0. Is that not correct?

Comment 5 Miro Hrončok 2023-01-12 12:23:15 UTC
Mageia also fixed this in gstreamer1.0-python

Comment 6 Ben Cotton 2023-02-07 14:52:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 7 Dominik 'Rathann' Mierzejewski 2024-03-07 10:47:46 UTC
Still reproducible on Fedora 40.

** (gst-plugin-scanner:8380): CRITICAL **: 11:46:03.987: Couldn't g_module_open libpython. Reason: /usr/lib64/libpython3.12.so: cannot open shared object file: No such file or directory

Note python3-gstreamer1 must be installed.
python3-gstreamer1-1.22.9-2.fc40.x86_64


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