The 'system-config-printer' utility does not start when pygobject2 is missing on the system.
Issue
- Unable to start "system-config-printer" in Red Hat Enterprise Linux 7 minimal installtion. Getting following errors;
# system-config-printer
/usr/share/system-config-printer/system-config-printer.py:31: PyGIWarning: GdkPixbuf was imported without specifying a version first. Use gi.require_version('GdkPixbuf', '2.0') before import to ensure that the right version gets loaded.
from gi.repository import GdkPixbuf
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
/usr/share/system-config-printer/system-config-printer.py:33: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gdk
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 76, in <module>
import installpackage
File "/usr/share/system-config-printer/installpackage.py", line 23, in <module>
import glib
ImportError: No module named glib
Environment
- Red Hat Enterprise Linux 7
- system-config-printer
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.