Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1032895: lios crashes on systems where gtk4 is present

35 views
Skip to first unread message

Gunnar Hjalmarsson

unread,
Mar 13, 2023, 12:50:04 PM3/13/23
to
Package: lios
Version: 2.7.2-3
Severity: important

Hi!

lios is broken on systems where gtk4 is present. Example on Ubuntu 22.04:

$ lios
/usr/lib/python3/dist-packages/lios/ui/gtk/text_view.py:21: PyGIWarning:
Gtk was imported without specifying a version first. Use
gi.require_version('Gtk', '4.0') before import to ensure that the right
version gets loaded.
from gi.repository import Gtk
/usr/lib/python3/dist-packages/lios/ui/gtk/widget.py:24: PyGIWarning:
Atk was imported without specifying a version first. Use
gi.require_version('Atk', '1.0') before import to ensure that the right
version gets loaded.
from gi.repository import Atk
Traceback (most recent call last):
File "/usr/bin/lios", line 3, in <module>
from lios.main import *
File "/usr/lib/python3/dist-packages/lios/main.py", line 27, in <module>
from lios import scanner, editor, imageview, cam, ocr, preferences,
speech, train_tesseract
File "/usr/lib/python3/dist-packages/lios/editor.py", line 20, in
<module>
from lios.ui.gtk import text_view, tree_view, widget, dialog,
file_chooser, containers, window
File "/usr/lib/python3/dist-packages/lios/ui/gtk/widget.py", line
166, in <module>
class Separator(Gtk.HSeparator):
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line
32, in __getattr__
return getattr(self._introspection_module, name)
File "/usr/lib/python3/dist-packages/gi/module.py", line 123, in
__getattr__
raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gtk' object has no attribute 'HSeparator'

Gunnar Hjalmarsson

unread,
Mar 13, 2023, 1:10:05 PM3/13/23
to
@Samuel: I'm about to upload a fix in the form of an NMU to
experimental. Please consider to fix it in Debian 12.

--
Cheers,
Gunnar

Samuel Thibault

unread,
Mar 13, 2023, 1:20:04 PM3/13/23
to
Gunnar Hjalmarsson, le lun. 13 mars 2023 17:53:01 +0100, a ecrit:
> @Samuel: I'm about to upload a fix in the form of an NMU to experimental.

I guess something like this is needed:

https://gitlab.com/smc/ibus-braille/-/merge_requests/1/diffs

> Please consider to fix it in Debian 12.

Yes, I'll have a look.

Samuel

Gunnar Hjalmarsson

unread,
Mar 13, 2023, 1:40:04 PM3/13/23
to
On 2023-03-13 18:09, Samuel Thibault wrote:
> Gunnar Hjalmarsson, le lun. 13 mars 2023 17:53:01 +0100, a ecrit:
>> @Samuel: I'm about to upload a fix in the form of an NMU to
>> experimental.
>
> I guess something like this is needed:
>
> https://gitlab.com/smc/ibus-braille/-/merge_requests/1/diffs

Yes, precisely. So you upstreamed that ibus-braille fix. Nice! :)

But in this case the fix is already done upstream.

>> Please consider to fix it in Debian 12.
>
> Yes, I'll have a look.

Great.

--
Gunnar
0 new messages