FS#74625 - [libibus] missing python-gobject dependency

Attached to Project: Community Packages
Opened by Michel (xantares) - Tuesday, 03 May 2022, 07:35 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Campbell Jones (serebit)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

(EDIT: this was originally filed against python-pyglet)

gstreamer codec needs the full gi module from python-gobject:

$ python -c "import pyglet.info; pyglet.info.dump_ffmpeg()
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.10/site-packages/pyglet/info.py", line 180, in dump_ffmpeg
import pyglet.media
File "/usr/lib/python3.10/site-packages/pyglet/media/__init__.py", line 145, in <module>
add_default_media_codecs()
File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/__init__.py", line 87, in add_default_media_codecs
from . import gstreamer
File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/gstreamer.py", line 51, in <module>
gi.require_version('Gst', '1.0')
AttributeError: module 'gi' has no attribute 'require_version'

libibus provides only an empty gi module, that's why it can still be imported but in the end it throws

This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:03 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/ibus/issues/1
Comment by Toolybird (Toolybird) - Friday, 08 July 2022, 00:15 GMT
Is this still an issue? Seems to work fine now:

$ python -c "import pyglet.info; pyglet.info.dump_ffmpeg()"
FFmpeg version: n5.0.1
Comment by Michel (xantares) - Friday, 08 July 2022, 18:11 GMT
yes, this is still an issue, I just removed the python-gobject and got this error; if I reinstall it it goes away
Comment by Toolybird (Toolybird) - Friday, 08 July 2022, 22:21 GMT
Ok, I can repro if libibus is installed. This smells like an ibus packaging bug (it's a split pkg). ibus depends on python-gobject but libibus does not.

To reproduce in a clean chroot:

# pacman -S python-pyglet libibus
$ python -c "import pyglet.info; pyglet.info.dump_ffmpeg()"

Moving the python-gobject dep from ibus to libibus is one possible way to solve this. I'll reassign this bug to ibus if there are no objections?
Comment by Toolybird (Toolybird) - Friday, 19 May 2023, 06:02 GMT
python-pyglet was moved to the AUR Apr '23 but the core problem of ibus wrong dep remains.
Comment by Dev S (dev) - Wednesday, 22 November 2023, 15:54 GMT
Version 1.5.29-1 in testing now pulls in python on systems that don't need it.

Packages that actually need ibus python bindings can instead depend on both libibus and python-gobject.

Please consider reverting.

Loading...