Smart-Notifier crashes with 'gi.repository.Gtk' object has no attribute 'main'

Bug #1949391 reported by Ben Tobin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smart-notifier (Ubuntu)
New
Undecided
Unassigned

Bug Description

Smart-Notifier crashes when started without the --notify argument with the following output:

/usr/share/smart-notifier/smart_notifier/gui.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
Traceback (most recent call last):
  File "/usr/bin/smart-notifier", line 14, in <module>
    smart_notifier.gui.service()
  File "/usr/share/smart-notifier/smart_notifier/gui.py", line 52, in service
    Gtk.main()
  File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 32, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3/dist-packages/gi/module.py", line 123, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gtk' object has no attribute 'main'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.