hp-plugin crashes with error: Python gobject/dbus may be not installed
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| HPLIP |
Undecided
|
Unassigned | |||
| One Hundred Papercuts |
Medium
|
Unassigned | |||
| hplip (Ubuntu) |
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/
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
ProcVersionSign
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
MachineType: LENOVO 3249CTO
Papersize: letter
ProcKernelCmdLine: BOOT_IMAGE=
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.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 3249CTO
dmi.product.
dmi.sys.vendor: LENOVO
| Natalia Bidart (nataliabidart) wrote : | #1 |
| Changed in hplip (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in hplip: | |
| status: | New → Confirmed |
| Changed in hundredpapercuts: | |
| status: | New → Confirmed |
| importance: | Undecided → Medium |
| Natalia Bidart (nataliabidart) wrote : | #3 |
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/
return self.__cache[model]
KeyError: 'hp_laserjet_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
filter_dict, self.search, net_search=
File "/usr/share/
mq = queryModelByMod
File "/usr/share/
return model_dat[model]
File "/usr/share/
if self.read_
File "/usr/share/
fd = open(filename)
TypeError: invalid file: None
| Till Kamppeter (till-kamppeter) wrote : | #4 |
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.
| Natalia Bidart (nataliabidart) wrote : | #5 |
Tried to download by hand and install, got more errors:
nessita@miro:~$ wget http://
--2015-03-11 09:14:44-- http://
Resolving www.openprintin
Connecting to www.openprintin
HTTP request sent, awaiting response... 200 OK
Length: 1869363 (1.8M)
Saving to: ‘hplip-
hplip-3.
2015-03-11 09:15:09 (75.6 KB/s) - ‘hplip-
nessita@miro:~$ sudo sh hplip-3.
[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://
100 /var/lib/
| goutam (goutamkk) wrote : | #6 |
Hi Natalia,
Can you please download the ' hplip-3.15.2.run ' auto installer file from http://
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
| Natalia Bidart (nataliabidart) wrote : | #7 |
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://
100 /var/lib/
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
87307b116e58339
nessita@miro:~$ sh hplip-3.15.2.run
Creating directory hplip-3.
-rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
nessita@miro:~$ md5sum hplip-3.15.2.run
87307b116e58339
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.
| goutam kodu (goutam-hplip) wrote : Re: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus may be not installed | #8 |
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://
100 /var/lib/
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
87307b116e58339
nessita@miro:~$ sh hplip-3.15.2.run
Creating directory hplip-3.
-rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
nessita@miro:~$ md5sum hplip-3.15.2.run
87307b116e58339
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.
| Natalia Bidart (nataliabidart) wrote : Re: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus may be not installed | #10 |
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://
> 100 /var/lib/
>
> 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
> 87307b116e58339
> nessita@miro:~$ sh hplip-3.15.2.run
> Creating directory hplip-3.
> -rw-rw-r-- 1 nessita nessita 21804469 Mar 11 13:05 hplip-3.15.2.run
> nessita@miro:~$ md5sum hplip-3.15.2.run
> 87307b116e58339
> 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.
| Natalia Bidart (nataliabidart) wrote : | #11 |
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/
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://
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_
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.
| goutam kodu (goutam-hplip) wrote : Re: [Bug 1430561] Re: hp-plugin crashes with error: Python gobject/dbus may be not installed | #12 |
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.
| Natalia Bidart (nataliabidart) wrote : | #13 |
Those steps worked successfully. I was able to print!
Thanks goutam!!!
| Daniel Holbach (dholbach) wrote : | #14 |
This is an issue for me as well. Is there another way to resolve this other than to compile and install hplip manually?
| Richard Potter (rpotter) wrote : | #15 |
I also had the same issues, and post 12 worked for me in Ubuntu Gnome 15.04.
| Till Kamppeter (till-kamppeter) wrote : | #16 |
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.
| Suma Byrappa (suma-byrappa) wrote : | #17 |
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.
| Patrick T. (p1703) wrote : | #18 |
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
| Till Kamppeter (till-kamppeter) wrote : | #19 |
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.
| Tony Maro (tonymaro) wrote : | #20 |
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.
| MP (monkeech) wrote : | #21 |
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...
| Andrzej Książkiewicz (ksiaze) wrote : | #22 |
I second that. Problem makes scanner non-functional.
| goutam (goutamkk) wrote : | #23 |
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:/
We apologize for the inconvenience
| Till Kamppeter (till-kamppeter) wrote : | #24 |
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.
| Marcos Alves (marconian-gmail) wrote : | #25 |
This bug also affects me. Ubuntu (Unity) 15.10
| Marcos Alves (marconian-gmail) wrote : | #26 |
Solution mentioned in [1] worked for me.
[1] https:// bugzilla.redhat. com/ show_bug.


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