[Bug 2002865] Re: Othman does not run at all on Ubuntu 22.04
Launchpad Bug Tracker
2002865 at bugs.launchpad.net
Fri Jan 20 07:10:04 UTC 2023
This bug was fixed in the package othman - 0.6.0-3
---------------
othman (0.6.0-3) unstable; urgency=medium
[ أحمد المحمودي (Ahmed El-Mahmoudy) ]
* Add dh-sequence-python3 to build-deps
* Set debhelper compat level in build deps
[ Jeremy Bicha ]
* Bump debhelper from old 12 to 13
* Update debian/watch
* Update standards version to 4.6.2, no changes needed
[ mhsabbagh ]
* Add patch to require Gtk 3.0 (LP: #2002865)
-- Jeremy Bicha <jbicha at ubuntu.com> Thu, 19 Jan 2023 12:37:49 -0500
** Changed in: othman (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2002865
Title:
Othman does not run at all on Ubuntu 22.04
Status in othman package in Ubuntu:
Fix Released
Status in othman source package in Jammy:
Triaged
Status in othman source package in Kinetic:
Triaged
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/othman/+bug/2002865/+subscriptions
More information about the Ubuntu-sponsors
mailing list