[Bug 2002865] [NEW] Othman does not run at all on Ubuntu 22.04
Launchpad Bug Tracker
2002865 at bugs.launchpad.net
Thu Jan 19 20:21:40 UTC 2023
You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):
Hello.
Othman, the open source Quran browser, does not run at all in Ubuntu
22.04.
After installing it with:
$ sudo apt install othman
If you try to run the program, you will get the following error:
mhsabbagh at ubuntu2204:~$ othman-browser
/usr/lib/python3/dist-packages/othman/gtkUi.py:23: 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, Gdk, GLib, Pango, GdkPixbuf
Traceback (most recent call last):
File "/usr/bin/othman-browser", line 4, in <module>
main()
File "/usr/lib/python3/dist-packages/othman/gtkUi.py", line 425, in main
w = othmanUi()
File "/usr/lib/python3/dist-packages/othman/gtkUi.py", line 115, in __init__
self.connect("delete_event", self.quit)
TypeError: <gtkUi.othmanUi object at 0x7f8ab7dd6c80 (othman+gtkUi+othmanUi at 0x55a4070ee2b0)>: unknown signal name: delete_event
However, this error seems to be in Ubuntu 22.04 only; I installed Debian 11 (which ships the exact same version of Othman, 0.6.0-2), and it runs without problems (image attached).
I have found that if we just add these two lines to
/usr/lib/python3/dist-packages/othman/gtkUi.py file (before the "from
gi.repository import Gtk..." line), then the program will run
successfully:
import gi
gi.require_version('Gtk', '3.0')
So it sounds like the issue is that since the Gtk version required isn't
specified, it is trying to import Gtk 4.0 (which the program isn't
designed to work with).
Can anyone create a patch file with these two lines and update it in the
Ubuntu package?
Thanks.
** Affects: othman (Ubuntu)
Importance: High
Status: Fix Committed
** Affects: othman (Ubuntu Jammy)
Importance: High
Status: Triaged
** Affects: othman (Ubuntu Kinetic)
Importance: High
Status: Triaged
** Tags: patch
--
Othman does not run at all on Ubuntu 22.04
https://bugs.launchpad.net/bugs/2002865
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list