2023-01-14 07:39:12 |
M.Hanny Sabbagh |
bug |
|
|
added bug |
2023-01-14 07:39:12 |
M.Hanny Sabbagh |
attachment added |
|
Othman running in Debian 11 https://bugs.launchpad.net/bugs/2002865/+attachment/5641349/+files/2023-01-14_10-19.png |
|
2023-01-15 12:11:27 |
Launchpad Janitor |
othman (Ubuntu): status |
New |
Confirmed |
|
2023-01-17 15:05:13 |
M.Hanny Sabbagh |
attachment added |
|
gtk-set-version-3.0.patch https://bugs.launchpad.net/ubuntu/+source/othman/+bug/2002865/+attachment/5641961/+files/gtk-set-version-3.0.patch |
|
2023-01-19 17:43:59 |
Jeremy Bícha |
othman (Ubuntu): importance |
Undecided |
High |
|
2023-01-19 17:44:01 |
Jeremy Bícha |
othman (Ubuntu): status |
Confirmed |
Fix Committed |
|
2023-01-19 17:44:05 |
Jeremy Bícha |
nominated for series |
|
Ubuntu Jammy |
|
2023-01-19 17:44:05 |
Jeremy Bícha |
bug task added |
|
othman (Ubuntu Jammy) |
|
2023-01-19 17:44:05 |
Jeremy Bícha |
nominated for series |
|
Ubuntu Kinetic |
|
2023-01-19 17:44:05 |
Jeremy Bícha |
bug task added |
|
othman (Ubuntu Kinetic) |
|
2023-01-19 17:44:11 |
Jeremy Bícha |
othman (Ubuntu Jammy): status |
New |
Triaged |
|
2023-01-19 17:44:13 |
Jeremy Bícha |
othman (Ubuntu Jammy): importance |
Undecided |
High |
|
2023-01-19 17:44:15 |
Jeremy Bícha |
othman (Ubuntu Kinetic): importance |
Undecided |
High |
|
2023-01-19 17:44:18 |
Jeremy Bícha |
othman (Ubuntu Kinetic): status |
New |
Triaged |
|
2023-01-19 20:21:33 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2023-01-19 20:21:40 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2023-01-20 07:10:04 |
Launchpad Janitor |
othman (Ubuntu): status |
Fix Committed |
Fix Released |
|
2023-01-20 13:13:40 |
Jeremy Bícha |
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@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. |
Impact
------
Othman won't run in Ubuntu 22.04 LTS because it tries to import Gtk with gobject-introspection without specifying a version. Ubuntu Desktop 22.04 LTS has both gir1.2-gtk-3.0 and gir1.2-gtk-4.0 installed by default. This causes Othman to try to load GTK4 but it is not compatible with GTK4.
Test Case
---------
Install and run othman as demonstrated in the original bug report. The app should run normally.
What Could Go Wrong
-------------------
The app already does not work for most users. This is a trivial and correct fix.
Original Bug Report
-------------------
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@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. |
|
2023-01-20 13:13:58 |
Jeremy Bícha |
bug |
|
|
added subscriber Jeremy Bicha |
2023-01-20 13:14:09 |
Jeremy Bícha |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2023-01-20 13:21:30 |
Jeremy Bícha |
othman (Ubuntu Jammy): status |
Triaged |
In Progress |
|
2023-01-20 13:21:32 |
Jeremy Bícha |
othman (Ubuntu Kinetic): status |
Triaged |
In Progress |
|
2023-01-31 19:41:44 |
Brian Murray |
othman (Ubuntu Kinetic): status |
In Progress |
Fix Committed |
|
2023-01-31 19:41:45 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-01-31 19:41:47 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2023-01-31 19:41:50 |
Brian Murray |
tags |
patch |
patch verification-needed verification-needed-kinetic |
|
2023-01-31 19:45:27 |
Brian Murray |
othman (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2023-01-31 19:45:32 |
Brian Murray |
tags |
patch verification-needed verification-needed-kinetic |
patch verification-needed verification-needed-jammy verification-needed-kinetic |
|
2023-02-01 14:49:02 |
Jeremy Bícha |
tags |
patch verification-needed verification-needed-jammy verification-needed-kinetic |
patch verification-done verification-done-jammy verification-done-kinetic |
|
2023-02-08 01:48:04 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-02-08 01:56:41 |
Launchpad Janitor |
othman (Ubuntu Kinetic): status |
Fix Committed |
Fix Released |
|
2023-02-08 01:56:59 |
Launchpad Janitor |
othman (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|