Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926597 - media-sound/linux-show-player: ValueError: Namespace GstPbutils not available
Summary: media-sound/linux-show-player: ValueError: Namespace GstPbutils not available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL: https://github.com/FrancescoCeruti/li...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-03-09 11:28 UTC by Adrian Schollmeyer
Modified: 2024-03-25 11:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,17.60 KB, text/plain)
2024-03-09 11:31 UTC, Adrian Schollmeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Schollmeyer 2024-03-09 11:28:06 UTC
Probably a missing RDEPEND dev-python/gst-python. Whenever dev-python/gst-python is not installed, the following error occurs when trying to start linux-show-player:

$ linux-show-player
09:38:48.956 WARNING:: qt5ct detected. Linux Show Player and qt5ct are not compatible. Overriding.
Traceback (most recent call last):
  File "/usr/bin/linux-show-player", line 5, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/lisp/main.py", line 123, in main
    modules.load_modules()
  File "/usr/lib/python3.11/site-packages/lisp/modules/__init__.py", line 29, in load_modules
    for name, module in load_classes(__package__, os.path.dirname(__file__)):
  File "/usr/lib/python3.11/site-packages/lisp/core/loading.py", line 92, in load
    module = import_module(mod_path)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lisp/core/loading.py", line 125, in import_module
    return __import__(module_path, globals(), locals(), ['*'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lisp/modules/media_info/__init__.py", line 1, in <module>
    from .media_info import MediaInfo
  File "/usr/lib/python3.11/site-packages/lisp/modules/media_info/media_info.py", line 28, in <module>
    from lisp.modules.gst_backend.gst_utils import gst_uri_metadata, \
  File "/usr/lib/python3.11/site-packages/lisp/modules/gst_backend/__init__.py", line 4, in <module>
    from .gst_backend import GstBackend
  File "/usr/lib/python3.11/site-packages/lisp/modules/gst_backend/gst_backend.py", line 25, in <module>
    from lisp.modules.gst_backend.gst_utils import gst_parse_tags_list
  File "/usr/lib/python3.11/site-packages/lisp/modules/gst_backend/gst_utils.py", line 23, in <module>
    from lisp.modules.gst_backend.gi_repository import Gst, GstPbutils
  File "/usr/lib/python3.11/site-packages/lisp/modules/gst_backend/gi_repository.py", line 11, in <module>
    gi.require_version('GstPbutils', '1.0')
  File "/usr/lib/python3.11/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GstPbutils not available

Reproducible: Always

Steps to Reproduce:
1. Install media-sound/linux-show-player (USE="jack midi -alsa -pulseaudio -timecode")
2. Uninstall dev-python/gst-python
3. Run linux-show-player
Actual Results:  
Crashes with the aforementioned backtrace (can't find GstPbutils).

Expected Results:  
Program starts.

Installing dev-python/gst-python manually solves the issue. A quick glance at the LiSP source code also reveals that they unconditionally import from the gi package (which is provided by dev-python/gst-python) when using GStreamer.
Comment 1 Adrian Schollmeyer 2024-03-09 11:31:16 UTC
Created attachment 887172 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-03-25 11:56:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13c72cf49ff606199727afd0b2266bc90c1ce19b

commit 13c72cf49ff606199727afd0b2266bc90c1ce19b
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2024-03-25 11:48:33 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2024-03-25 11:56:13 +0000

    media-sound/linux-show-player: add 0.6.1
    
    Closes: https://bugs.gentoo.org/926597
    Closes: https://bugs.gentoo.org/926864
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 media-sound/linux-show-player/Manifest             |  1 +
 .../linux-show-player-0.6.1.ebuild                 | 75 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)