diff --git a/examples/python/gi/get-devices.py b/examples/python/gi/get-devices.py index 5a387bd2d5..4f06c870ae 100755 --- a/examples/python/gi/get-devices.py +++ b/examples/python/gi/get-devices.py @@ -21,6 +21,8 @@ # This example lists all devices, both real and placeholder ones +import gi +gi.require_version('NM', '1.0') from gi.repository import GLib, NM if __name__ == "__main__":