hp-plugin crashes with error: Python gobject/dbus may be not installed

Bug #1430561 reported by Natalia Bidart
126
This bug affects 25 people
Affects Status Importance Assigned to Milestone
HPLIP
Confirmed
Undecided
Unassigned
One Hundred Papercuts
Confirmed
Medium
Unassigned
hplip (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

When trying to configure an HP LaserJet P1102w, when running hp-plugin I get errors and can not proceed:

nessita@miro:~$ hp-plugin
error: Unable to locate models.dat file

HP Linux Imaging and Printing System (ver. 3.15.2)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-15 Hewlett-Packard 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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/nessita/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.2 Plugin Self Extracting Archive...............................
Error importing HPLIP modules. Is HPLIP installed?
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.
nessita@miro:~$

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: hplip 3.15.2-0ubuntu3
ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0
Uname: Linux 3.19.0-7-generic x86_64
ApportVersion: 2.16.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 10 19:23:41 2015
InstallationDate: Installed on 2014-11-30 (100 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
Lpstat: device for Laserjet: ipp://NPI2E6620.local:631/printers/Laserjet
MachineType: LENOVO 3249CTO
Papersize: letter
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-7-generic root=UUID=30425f63-143e-4183-aa37-394415c60a42 ro quiet splash vt.handoff=7
SourcePackage: hplip
UpgradeStatus: Upgraded to vivid on 2015-02-09 (29 days ago)
dmi.bios.date: 10/26/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET61WW (1.31 )
dmi.board.name: 3249CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6QET61WW(1.31):bd10/26/2010:svnLENOVO:pn3249CTO:pvrThinkPadX201:rvnLENOVO:rn3249CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 3249CTO
dmi.product.version: ThinkPad X201
dmi.sys.vendor: LENOVO

Revision history for this message
Natalia Bidart (nataliabidart) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Changed in hplip (Ubuntu):
importance: Undecided → Medium
Changed in hplip:
status: New → Confirmed
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Upgraded all packages and restarted computer. Now I get a failure when searching for the network printer:

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
-Traceback (most recent call last):
  File "/usr/share/hplip/base/models.py", line 519, in __getitem__
    return self.__cache[model]
KeyError: 'hp_laserjet_professional_p_1102w'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1232, in NextButton_clicked
    self.showDevicesPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 564, in showDevicesPage
    filter_dict, self.search, net_search=net_search_type)
  File "/usr/share/hplip/base/device.py", line 532, in probeDevices
    mq = queryModelByModel(model)
  File "/usr/share/hplip/base/device.py", line 446, in queryModelByModel
    return model_dat[model]
  File "/usr/share/hplip/base/models.py", line 525, in __getitem__
    if self.read_section(self.released_dat, model):
  File "/usr/share/hplip/base/models.py", line 435, in read_section
    fd = open(filename)
TypeError: invalid file: None

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To the HPLIP developers at HP, can you have a look at this? Perhaps it is a problem of the Python3 transition. Please also make sure that the Python code in the proprietary plugin works with Python3.

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Tried to download by hand and install, got more errors:

nessita@miro:~$ wget http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.2-plugin.run
--2015-03-11 09:14:44-- http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.2-plugin.run
Resolving www.openprinting.org (www.openprinting.org)... 140.211.169.27
Connecting to www.openprinting.org (www.openprinting.org)|140.211.169.27|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1869363 (1.8M)
Saving to: ‘hplip-3.15.2-plugin.run’

hplip-3.15.2-plugin.run 100%[=================================================================================================>] 1.78M 82.9KB/s in 24s

2015-03-11 09:15:09 (75.6 KB/s) - ‘hplip-3.15.2-plugin.run’ saved [1869363/1869363]

nessita@miro:~$ sudo sh hplip-3.15.2-plugin.run
[sudo] password for nessita:
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.2 Plugin Self Extracting Archive...............................
Error importing HPLIP modules. Is HPLIP installed?

nessita@miro:~$ sudo apt-cache policy hplip
hplip:
  Installed: 3.15.2-0ubuntu3
  Candidate: 3.15.2-0ubuntu3
  Version table:
 *** 3.15.2-0ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
goutam (goutamkk) wrote :

Hi Natalia,

Can you please download the ' hplip-3.15.2.run ' auto installer file from http://hplipopensource.com/hplip-web/gethplip.html.
Run command 'sh hplip-3.15.2.run' in terminal. This will warn that auto installation is not supported for ubuntu 15.04 . But you can still proceed to install.

Let us know if the installation went smooth.

After installation, try configuring the printer using command 'hp-setup' .

Let us know if you are facing the same as above.

Rgds,
goutam

Revision history for this message
Natalia Bidart (nataliabidart) wrote :
Download full text (17.9 KiB)

I tried the latest suggestion (full outout below) and got an error on:

error: A required dependency 'libtool (libtool - Library building support services)' is still missing.

But the package is available and installed:

nessita@miro:~$ apt-cache policy libtool
libtool:
  Installed: 2.4.2-1.11
  Candidate: 2.4.2-1.11
  Version table:
 *** 2.4.2-1.11 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Full output:
nessita@miro:~$ ls -l hplip-3.15.2.run
-rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
nessita@miro:~$ md5sum hplip-3.15.2.run
87307b116e58339337a7675c71e07bc1 hplip-3.15.2.run
nessita@miro:~$ sh hplip-3.15.2.run
Creating directory hplip-3.15.2nessita@miro:~$ ls -l hplip-3.15.2.run
-rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
nessita@miro:~$ md5sum hplip-3.15.2.run
87307b116e58339337a7675c71e07bc1 hplip-3.15.2.run
nessita@miro:~$ sh hplip-3.15.2.run
Creating directory hplip-3.15.2
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.2 Self Extracting Archive........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Revision history for this message
goutam kodu (goutam-hplip) wrote : Re: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus may be not installed
Download full text (21.3 KiB)

After installing libtool manually.. can you retry 'sh hplip-3.15.2.run' and let us know if the installation proceeds without any issue.

After install, run command ' hp-setup' to configure the device .

-------- Original message --------
From: Natalia Bidart <email address hidden>
Date: 11/03/2015 9:51 PM (GMT+05:30)
To: <email address hidden>
Subject: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus
  may be not installed

I tried the latest suggestion (full outout below) and got an error on:

error: A required dependency 'libtool (libtool - Library building
support services)' is still missing.

But the package is available and installed:

nessita@miro:~$ apt-cache policy libtool
libtool:
  Installed: 2.4.2-1.11
  Candidate: 2.4.2-1.11
  Version table:
*** 2.4.2-1.11 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Full output:
nessita@miro:~$ ls -l hplip-3.15.2.run
-rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
nessita@miro:~$ md5sum hplip-3.15.2.run
87307b116e58339337a7675c71e07bc1  hplip-3.15.2.run
nessita@miro:~$ sh hplip-3.15.2.run
Creating directory hplip-3.15.2nessita@miro:~$ ls -l hplip-3.15.2.run
-rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
nessita@miro:~$ md5sum hplip-3.15.2.run
87307b116e58339337a7675c71e07bc1  hplip-3.15.2.run
nessita@miro:~$ sh hplip-3.15.2.run
Creating directory hplip-3.15.2
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.2 Self Extracting Archive..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Revision history for this message
Natalia Bidart (nataliabidart) wrote : Re: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus may be not installed
Download full text (25.2 KiB)

Hey goutam,

libtool was already installed in the system, I did not install it manually.

I re-tried the command, and I got the same error about libtool being missing.

Any other thing I can try?

On Wed, Mar 11, 2015 at 2:41 PM, goutam kodu <email address hidden> wrote:
> After installing libtool manually.. can you retry 'sh hplip-3.15.2.run'
> and let us know if the installation proceeds without any issue.
>
> After install, run command ' hp-setup' to configure the device .
>
>
>
> -------- Original message --------
> From: Natalia Bidart <email address hidden>
> Date: 11/03/2015 9:51 PM (GMT+05:30)
> To: <email address hidden>
> Subject: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus
> may be not installed
>
> I tried the latest suggestion (full outout below) and got an error on:
>
> error: A required dependency 'libtool (libtool - Library building
> support services)' is still missing.
>
> But the package is available and installed:
>
> nessita@miro:~$ apt-cache policy libtool
> libtool:
> Installed: 2.4.2-1.11
> Candidate: 2.4.2-1.11
> Version table:
> *** 2.4.2-1.11 0
> 500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
> 100 /var/lib/dpkg/status
>
> Full output:
> nessita@miro:~$ ls -l hplip-3.15.2.run
> -rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
> nessita@miro:~$ md5sum hplip-3.15.2.run
> 87307b116e58339337a7675c71e07bc1 hplip-3.15.2.run
> nessita@miro:~$ sh hplip-3.15.2.run
> Creating directory hplip-3.15.2nessita@miro:~$ ls -l hplip-3.15.2.run
> -rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
> nessita@miro:~$ md5sum hplip-3.15.2.run
> 87307b116e58339337a7675c71e07bc1 hplip-3.15.2.run
> nessita@miro:~$ sh hplip-3.15.2.run
> Creating directory hplip-3.15.2
> Verifying archive integrity... All good.
> Uncompressing HPLIP 3.15.2 Self Extracting Archive...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Completely purged libtool and re-installed it:

nessita@miro:~$ sudo apt-get purge libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libtool*
0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.
After this operation, 826 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 296116 files and directories currently installed.)
Removing libtool (2.4.2-1.11) ...
Processing triggers for man-db (2.7.0.2-5) ...

nessita@miro:~$ sudo rm -rf /usr/share/libtool/
nessita@miro:~$ sudo rm -rf /var/cache/apt/archives/libtool_2.4.2-1.11_all.deb

nessita@miro:~$ sudo apt-get install libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libtool-doc gfortran fortran95-compiler gcj-jdk
The following NEW packages will be installed:
  libtool
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 180 kB of archives.
After this operation, 826 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ vivid/main libtool all 2.4.2-1.11 [180 kB]
Fetched 180 kB in 15s (11.4 kB/s)
Selecting previously unselected package libtool.
(Reading database ... 296092 files and directories currently installed.)
Preparing to unpack .../libtool_2.4.2-1.11_all.deb ...
Unpacking libtool (2.4.2-1.11) ...
Processing triggers for man-db (2.7.0.2-5) ...

Same error when running sh hplip-3.15.2.run:

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 1 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'libtool (libtool - Library building support services)' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.

Revision history for this message
goutam kodu (goutam-hplip) wrote : Re: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus may be not installed

There seem to be an issue with the auto installer script . While we take a look at it can you try manually installing the hplip.

Here are the steps.
1 . Go inside the folder hplip-3.15.2. It should be created at the same location where auto installer was run.

change directory  to  hplip-3.15.2

cd   hplip-3.15.2

2.  Run command ./configure --prefix=/usr
3. Run 'make' command.
4. Run 'sudo make install'

This should install hplip in your system
Configure the device and let us know if everything is working.

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Those steps worked successfully. I was able to print!

Thanks goutam!!!

Revision history for this message
Daniel Holbach (dholbach) wrote :

This is an issue for me as well. Is there another way to resolve this other than to compile and install hplip manually?

Revision history for this message
Richard Potter (rpotter) wrote :

I also had the same issues, and post 12 worked for me in Ubuntu Gnome 15.04.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

note that manually compiling HPLIP makes it based on Python2 whereas the packaged version is based on Python3. The proprietary plug-in seems to work only in Python2 environments and so with the manually built HPLIP.

So to the HPLIP develpers at HP: Please make the plug-in work in both Python2 and Python3 environments.

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

HPLIP plug-in package too works well in both Py2 and Py3 environments.

This problem is seen due to mixed Python environments. HPLIP maintains /usr/bin/python as the shebang lines; allowing the scripts to run with whatever is the default python. But in Ubuntu HPLIP packages, shebang is changed to /usr/bin/python3 which makes scripts to run with Py3. The python script inside the plugin package holds /usr/bin/python as the shebang, due to which it runs in Py2 (which is default). The problem happens as the python script inside plugin package is invoked by a script which contains /usr/bin/python3 as the shebang (updated in Ubuntu packages).

Since plug-in package is proprietary, we will provide a solution to this problem.

Revision history for this message
Patrick T. (p1703) wrote :

WTF?????

How can such a critical bug be "medium" and unassigned since several months?

HELLO???????? MY PRINTER DOES NOT DO ANYTHING!!!!!

WAKE UP! An OS is complete nonsense unless I can use my hardware!
If I should use Windows to print a page, I don't need another OS...

I need an instant solution! And it's not on me to compile this shit - you broke it - you got to fix it! o_O

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Patrick, note that your bug report is duplicate of bug #1422004, and that all further discussion towards the fix happens there. This bug is also set to "High" priority. The solution is also already available there and we ask users for testing it so that we can make it official (= part of automatic updates). So please go to bug #1422004 and follow the instructions of comment #33 there to make your printer working. Please tell there whether all is working for you with the new package.

Revision history for this message
Tony Maro (tonymaro) wrote :

The does not appear to be a duplicate to me - the issue is not one of Cups crashing with HP printers as per #1422004 , but is one where you are unable to install the driver to begin with. How is that a duplicate?

This is still an issue with a brand-new updated 14.04 LTS server. It claims that python-dbus and python-gobject aren't installed and fails to copy the driver over, despite those packages being installed.

Revision history for this message
MP (monkeech) wrote :

Problem still exists with Ubuntu 15.10 and hplip 3.15.11

Package and Self-Compiled... both fail at the plugins.

Tried everything on 2 different machines, Printing works, but due to not being able to install the plugin, fax and scanner are now useless...

Revision history for this message
Andrzej Książkiewicz (ksiaze) wrote :

I second that. Problem makes scanner non-functional.

Revision history for this message
goutam (goutamkk) wrote :

It is bug in the 3.15.11 plugin installation script. We are working on the fix. While we work on it please find the workaround here https://bugs.launchpad.net/hplip/+bug/1521006.

We apologize for the inconvenience

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

goutam, as the problem is in the plugin and not in the HPLIP package, can you fix all versions of the plugin which have the problem appropriately?

I appreciate very much if you also could fix older versions of the plugin (I remember complaints started with 3.15.7, but please check), as in already released versions of Ubuntu we cannot replace HPLIP by a newer version. Thanks.

Revision history for this message
Marcos Alves (marconian-gmail) wrote :

This bug also affects me. Ubuntu (Unity) 15.10

Revision history for this message
Marcos Alves (marconian-gmail) wrote :

Solution mentioned in [1] worked for me.

[1] https:// bugzilla.redhat. com/ show_bug.cgi?id=1249414#c9

Revision history for this message
Jevgenijs Vainsteins (feranicus) wrote :

I was able to duplicate this bug on Ubuntu 18.14 while installing HPLIP for Laserjet Pro MFP M125mW
During the scanner plugin install I get the same error.

When I installed separately the sudo apt install libcanberra-gtk-module

Then i got the following error

HP Linux Imaging and Printing System (ver. 3.18.12)
Plugin Installer ver. 3.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.

Plug-in version: 3.18.12
Installed HPLIP version: 3.18.12
Number of files to install: 55

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

There is a very simple workaround to fix this.

Just go to HP website directly and download your hplip plugin.
In my case it was hplip-3.18.12-plugin.run
HP website address is https://developers.hp.com/hp-linux-imaging-and-printing/plugins
Download the plugin to Documents folder
Then open terminal, go to Documents folder and install the plugin with command sh hplip-3.18.12-plugin.run and follow instructions on the screen.

This should fix your HP Scanner problem.

Revision history for this message
Richard (richard.dg) wrote :

I am having the issue on Ubuntu 18.04. Thanks Jevgenijs your suggested solution https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1430561/comments/27
partly worked for me. I was able to install the plugin without any errors. But when I try to set up my printer (Laserjet M1212nf MFP) it get the following error:

HP Linux Imaging and Printing System (ver. 3.18.12)
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.

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
Segmentation fault
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

So even if I am able able to install the plugin it somehow is not recognized by the hp-setup and I am still stuck and not able to print/scan/fax.

So do you maybe have any suggestion how to get this solved?

Thanks a lot!

Micha

Revision history for this message
Osvaldo Israel Estrada Sosa (osvaldo20000) wrote :

Richard I have the same bug. I have install hplip-3.18.12.run but still showing that message. My HP printer model is HP Laserjet M1132 MFP (Multifunction printer). Developers please help us.

Revision history for this message
Dan Irvine (daan58) wrote :

Richard & Osvaldo; I have the exact same issue;
running Ubuntu 18.04 ; followed the instructions removing libtool and reinstalling and recompiling hplipinstall.

Still at the driver setup I get :
"warning: Fax setup disabled - Python 2.3+ required. Plugin installation failed error: Python gobject/dbus may be not installed error: Plug-in install failed."

I remember things have been working 6 months ago when a had a fresh install of ubuntu 18.04 ,
ever since ubuntu python3 was updates printing stopped on my HP Laserjet M1132 MFP.

Revision history for this message
Dan Irvine (daan58) wrote :

The comments made here :https://bugs.launchpad.net/hplip/+bug/1486731/comments/10

proved ok to have the plugin installed for hplip-3.18.12.

Revision history for this message
Fabio Lallo (fabioesl) wrote :

~$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Download and Install Utility ver. 2.1

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.

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Download and Install Utility ver. 2.1

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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/fabio/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.1 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Installer ver. 3.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.

Plug-in version: 3.19.1
Installed HPLIP version: 3.19.1
Number of files to install: 64

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Revision history for this message
Fabio Lallo (fabioesl) wrote :

Linux Mint 19.1 Cinnamon

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

******

$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Download and Install Utility ver. 2.1

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.

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Download and Install Utility ver. 2.1

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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/fabio/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.1 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.1)
Plugin Installer ver. 3.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.

Plug-in version: 3.19.1
Installed HPLIP version: 3.19.1
Number of files to install: 64

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Revision history for this message
Pavel Zaikin (pzaikin) wrote :

Linux Min 19.1
HP LJ p1505

$ hp-plugin -i -g

hp-plugin[1137]: debug: Validating /home/pz/.hplip/hplip-3.19.1-plugin.run with /home/pz/.hplip/hplip-3.19.1-plugin.run.asc signature file
Receiving digital keys: /usr/bin/gpg --homedir /home/pz/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
hp-plugin[1137]: debug: gpg: keyserver receive failed: No data

hp-plugin[1137]: debug: gpg: keyserver receive failed: No data

()
error: Unable to recieve key from keyserver

...

Plugin installation failed
error: Plugin installation failed

Done.
hp-plugin[1137]: debug: Removing ./plugin_tmp cmd = rm -rf ./plugin_tmp
hp-plugin[1137]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-plugin[1137]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-plugin[1137]: debug: Exception: 4 (Unknown/invalid device-uri field)

Done.
hp-plugin[1137]: debug: Unlocking: /var/hp-plugin.lock

Revision history for this message
Ra (raffamaiden) wrote :

I have this problem and I comment here because the duplicate status is wrong.

The duplicate says "pkservice.py crashed with AttributeError in __init__(): 'module' object has no attribute 'MainLoop'".

My problem is another one, the one described here: "Python gobject/dbus may be not installed"

how can I install the plugin?

Revision history for this message
hvn (hvn) wrote :

I have the exact same problem using Ubuntu 18.04. Reading all of the above, I decided to do the manual install of the (5 hours old) 3.19.6 version. Guess what: nothing changed, still error.

Next attempt: the binary install. Doesn't download the plugin, but gives the link so you can copy and download it. But no such link for the plugin.asc is also needs. Just a "missing" message. After downloading both and re-run hp-plugin it all ends the same:

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

So when do they finally fix the pgp,mit.edu keyserver?

Revision history for this message
peacecop kalmer: (peacecop-kalmer) wrote :

I confirm that the error still exists:
$ hp-setup

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

Copyright (c) 2001-18 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.

Searching... (bus=usb, search=(None), desc=0)

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 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.

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 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.

Downloading plug-in from: file:///home/peacecop/hplip-3.19.6-plugin.run
1100%Receiving digital keys: /usr/bin/gpg --homedir /home/peacecop/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.6 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Installer ver. 3.0

Copyright (c) 2001-18 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.

Plug-in version: 3.19.6
Installed HPLIP version: 3.19.6
Number of files to install: 64

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

Done.

Revision history for this message
Martin Kerkmann (martink999) wrote :

BUG still existing also for model

HP Color LaserJet Pro MFP M281fdw

Printing works but scanning is not possible because of failure when installing plugin!
No solution actually seems to be available! Developers please help!

SystemInfo:
System: Host: papi-mint Kernel: 4.15.0-54-generic x86_64 bits: 64 compiler: gcc v: 7.4.0
           Desktop: Cinnamon 4.0.10 wm: muffin dm: LightDM Distro: Linux Mint 19.1 Tessa
           base: Ubuntu 18.04 bionic

TerminalLog:
papi@papi-mint:~/Downloads$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 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.

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/papi/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.6 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Installer ver. 3.0

Copyright (c) 2001-18 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.

Plug-in version: 3.19.6
Installed HPLIP version: 3.19.6
Number of files to install: 64

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Cheers
/Martin

Revision history for this message
Nathan Wallach (taniwallach) wrote :

I had this sort of problem on Debian 10, and found several things which together got scanning working for me on HP Color LaserJet Pro MFP M277dw. I hope the proceedure below is of help to someone else.

1. Fix the source for the gpg key to avoid the problem with the pgp.mit.edu server:

   sudo cp -a /usr/share/hplip/base/validation.py /usr/share/hplip/base/validation.py.ORIG

   vim /usr/share/hplip/base/validation.py

   # replace pgp.mit.edu with pool.sks-keyservers.net on line 44

2. After getting the plugin to install using "hp-plugin" as a regular user and the root password when requested, the software still complained...

3. It seems that hplip expects the libraries in a different location than where they are getting installed:

   find /usr/lib -name "*sane*" | grep hp2000S

   sudo ln -s /usr/lib /usr/lib/i386-linux-gnu
   sudo ln -s /usr/lib64 /usr/lib64/x86_64-linux-gnu

(Based on https://bugs.launchpad.net/hplip/+bug/1818629)

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.