current code crashes with name 'gi' is not defined

Bug #2004558 reported by Andreas Tennert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
light-locker-settings
New
Undecided
Unassigned

Bug Description

The code that is currently on trunk for light-locker-settings.py, but not released yet, is failing with:

Traceback (most recent call last):
  File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 30, in <module>
    gi.require_version('Gtk', '3.0')
NameError: name 'gi' is not defined

The required fix is to add

import gi

before gi.require_version('Gtk', '3.0')

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.