"ValueError: Namespace Notify not available for version 0.7" with libnotify 0.8
When libnotify 0.8 is installed, GNOME Tweaks will not startup, displaying in console the traceback below. Please notice that gtweak/utils.py hardcodes Notify 0.7 dependency.
$ gnome-tweaks
Traceback (most recent call last):
File "/usr/bin/gnome-tweaks", line 76, in <module>
from gtweak.app import GnomeTweaks
File "/usr/lib/python3.10/site-packages/gtweak/app.py", line 14, in <module>
from gtweak.tweakmodel import TweakModel
File "/usr/lib/python3.10/site-packages/gtweak/tweakmodel.py", line 10, in <module>
from gtweak.utils import SchemaList, LogoutNotification, Notification
File "/usr/lib/python3.10/site-packages/gtweak/utils.py", line 15, in <module>
gi.require_version("Notify", "0.7")
File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace Notify not available for version 0.7
Environment:
- Arch Linux
- gnome-tweaks 42 beta (based on the commit: gc66d8c33)
- libnotify 0.8
Reproduce steps (taking Arch as an example):
- Having latest libnotify 0.7 (i.e. 0.7.12) installed, run GNOME Tweaks. It should open normally
- Update Arch system to receive libnotify 0.8
- Run GNOME Tweaks again, and traceback is printed
Edited by Rafael Fontenelle