max-moser / lightdm-elephant-greeter

A simple LightDM greeter that can run under Wayland.
MIT License
61 stars 3 forks source link

ValueError: Namespace LightDM not available #3

Open CharString opened 1 year ago

CharString commented 1 year ago

I got this in my seat log.

Traceback (most recent call last): File "/usr/local/bin/elephant-greeter.py", line 17, in gi.require_version("LightDM", "1") File "/usr/lib/python3/dist-packages/gi/init.py", line 126, in require_version raise ValueError('Namespace %s not available' % namespace)

On Debian I had to install the gir1.2-lightdm-1 package too, as liblightdm-gobject-1-0 which automatically gets installed as a dependency of lightdm wasn't enough.

Maybe a make test target that tries this

import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
gi.require_version("LightDM", "1")

before we install and get our endless lightdm crash cycle fun.