sumarsono.com
Take it with a grain of salt


Mengatasi Error import gobject Ketika Menjalankan hp-setup di Arch Linux

Posted on

Pagi ini, ketika saya mau setup printer merk HP muncul error seperi berikut ini: bash [sumarsono@mesin-arch ~]$ hp-setup

HP Linux Imaging and Printing System (ver. 3.17.9) Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.

Traceback (most recent call last): File "/usr/bin/hp-setup", line 313, in ui = import_module(ui_package + ".setupdialog") File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 978, in _gcd_import File "", line 961, in _find_and_load File "", line 950, in _find_and_load_unlocked File "", line 655, in _load_unlocked File "", line 678, in exec_module File "", line 205, in _call_with_frames_removed File "/usr/share/hplip/ui5/setupdialog.py", line 31, in from base import device, utils, models, pkit File "/usr/share/hplip/base/pkit.py", line 38, in from gi import _gobject as gobject ImportError: cannot import name '_gobject'


### Solusi
Sangat mudah, cukup install `python-gobject` sudah beres.

Profit, happy printing.