System-config-printer Error in Namespace Notify

I’m trying to pull up the system-config-printer dialog to configure my printer but it seems there’s an error:

$ system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 84, in <module>
    import jobviewer
  File "/usr/share/system-config-printer/jobviewer.py", line 29, 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

a little search online shows missing libnotify library but it is installed here:

1 extra/libnotify 0.8.0-1 (58.4 KiB 321.3 KiB) (Installed)
    Library for sending desktop notifications

any idea what is causing this error? Could it be that libnotify was upgraded to version 0.8 but system-config-printer was expecting v0.7?

Looks like it needs to be updated to take account of the new libnotify pacakge.
You could perhaps report it here:

Yep it looks like it needs to be rebuilt to v0.8, in the meantime as a workaround i just changed the version number in “/usr/share/system-config-printer/jobviewer.py” from 0.7 to 0.8. Lots of deprecated messages but it’ll work for now until they rebuild this package. Ideally this is not the way it should be done but when you gotta use your printer. :unamused:

1 Like

You might consider downgrading libnotify temporarily until they fix it.
But note that downgrading is not a solution (as it may cause other issues) but can be a temporary workaround.