hplip-3.15.7-plugin.run doesn't return

Bug #1486731 reported by Jarbas Jácome
138
This bug affects 33 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned
Fedora
Fix Released
Undecided

Bug Description

1. Linux Distribution and version:
Arch Linux
4.1.5-1-ARCH #1 SMP PREEMPT Tue Aug 11 15:41:14 CEST 2015 x86_64 GNU/Linux

2. Printer make/model.
HP Laser Jet M1132 MFP

3. If possible, run 'hp-check -t' and post the output.

4. A detailed explanation of your problem.
Sometimes after upgrading arch linux system I have to run again "hp-setup" to make my printer capable to print again.
But last time I upgraded to hplip-3.15.7-1 version, I couldn't make my printer to work again with that version.
Lots of times I tried to set it up using "hp-setup -i" I got stucked after answer "yes" to the license agreement for the plugin installation. When I answer "yes" the program stay rolling that "wait" bar for ever in the corner of my terminal screen like this:
- \ | / - \ | / -...

I also tried direct download the plugin at http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.7-plugin.run

But got the same problem when I run it from the command line. It keeps rolling the "wait" bar for ever...

5. Steps to recreate the problem.
a- Download hplip-3.15.7-plugin.run
b- Change hplip-3.15.7-plugin.run permission to run
c- Run it ./hplip-3.15.7-plugin.run
d- Answer "yes" for the license agreement and you see that rolling for ever

Solution for me:
I downgraded to hplip-3.15.6

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

Description of problem:

After upgrading to HPLIP 3.15.7-1, scanning on my LaserJet Pro 200 color MFP M276mw ceased to work, as usual, the plugins must be updated.

Now, when running "sudo hp-plugin -i" I am greeted with:

error: hp-plugin should not be run as root/superuser

OK, tried again with my user but I don't know how it will install the plugins system-wide. Now, "hp-plugin -i" seems to work, until after it properly downloaded hplip-3.15.7-plugin.run. Then it just spins its progress indicator and "pstree -pl" shows this:

|-bash(7573)---hp-plugin(10319)---sh(10356)---hplip-plugin-in(10414)---python3(10417)---su(10443)

Apparently, "su" is run but no root password prompt is shown and neither any GUI helper shows up in X11. Ctrl-C obviously stops "su" and hp-plugin reports the keyboard stopping, the result is that no plugin is installed.

"dnf downgrade hplip hplip-gui hpijs hplip-compat-libs libsane-hpaio hplip-libs hplip-common" downgraded to 3.15.2 but "sudo hp-plugin -i" shows the same error as the last comment in #1196237 :

error: /root/.hplip/hplip-3.15.2-plugin.run file does not match its checksum. File may have been corrupted or altered

Version-Release number of selected component (if applicable):

3.15.7-1.fc22

How reproducible:

Always.

Steps to Reproduce:
1. Run "hp-plugin -i"
2.
3.

Actual results:

As described above.

Expected results:

"hp-plugin -i" should be able to run as root as it always did. After all, machines can be upgraded remotely and setting them up should also be able to be done by the administrator.

Additional info:

Running "hp-plugin" without "-i" does the same, but with the wizard window shown up. The download progress is shown but after pressing the Next button makes it stall, too. The "su" command is also there in pstree.

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

I am using MATE desktop on Fedora 22 if that counts.

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

Hmm, hp-plugin [-i] (3.15.7) works for me in GNOME3/gtk3.

You might try to run it with (-g) but other than that I'm not sure how to further debug this.

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :
Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

*** Bug 1252375 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

*** Bug 1249282 has been marked as a duplicate of this bug. ***

Changed in hplip:
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I tried this on Ubuntu Wily.

If I run

hp-plugin

on the command line, all works perfectly. After agreeing with the license I get asked for my password (for installing the files into the system) and after that it says that the plugin got successfully installed and I can close the window.

If I manually download the plugin and run it on the command line I get

----------
till@virt-wily:~$ ./hplip-3.15.7-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.7 Plugin Self Extracting Archive............................................
Error importing HPLIP modules. Is HPLIP installed?
till@virt-wily:~$
----------

So as "hp-plugin" works no real problem on Ubuntu Wily.

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

*** Bug 1256070 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

Created attachment 1066734
Output of hp-plugin -i -g

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

(In reply to Zoltan Boszormenyi from comment #7)
> Created attachment 1066734 [details]
> Output of hp-plugin -i -g

I pressed Ctrl-C at the end, this is where I got the python backtrace.

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

A new Fedora 22 installation from scratch using the MATE Spin Live DVD and installing all the upgrades before setting up the printer behaves the same. This time it happened on a computer with a HP LaserJet 1020 printer attached.

The workaround I found is to do this:

$ mkdir HP
$ cd HP
$ wget https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.7-plugin.run
$ chmod +x hplip-3.15.7-plugin.run
$ ./hplip-3.15.7-plugin.run --noexec --keep
$ cd plugin_tmp

In the plugin_tmp directory, edit plugin_install.py and either remove or comment out lines 42-44.

Then:

$ sudo ./hplip-plugin-install

or

$ sudo ./hplip-plugin-install -i

This workaround helped with the LaserJet 1020 printer to print and I can scan with my HP LaserJet Pro MFP printer, too.

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

Another note I have to add (should be in a different ticket) is that the firmware for the LJ1020 is not loaded automatically. I have to create a panel icon to run "hp-firmware" before the user wants to print.

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

(In reply to Zoltan Boszormenyi from comment #10)
> Another note I have to add (should be in a different ticket) is that the
> firmware for the LJ1020 is not loaded automatically.

That's bug #1033952 (should be fixed in Fedora 23).

Revision history for this message
FreeMinded (pascal-planetmages) wrote :

This does not work for me on Kubuntu Wily! See Bug #1502025 for details.

If I run
hp-plugin

on the command line, after agreeing with the license I do not get asked for the password and the activity indicator keeps spinning forever.

Manual download fails in the same manner as already described by Till Kamppeter.

Is there a way to work around this?

Revision history for this message
Bernd Laser (bernd-laser) wrote :

Since my bug report has been marked a duplicate of this one:

hp-plugin does NOT run "perfectly" on Wily.

bela@luna:~$ hp-plugin

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

HP Linux Imaging and Printing System (ver. 3.15.7)
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/bela/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.7 Plugin Self Extracting Archive............................................

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

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.

Plug-in version: 3.15.7
Installed HPLIP version: 3.15.7
Number of files to install: 38

-^CTraceback (most recent call last):
  File "./plugin_install.py", line 249, in <module>
    ok = installPlugin()
  File "./plugin_install.py", line 56, in installPlugin
    status, output = utils.run(cmd, passwordObj)
  File "/usr/share/hplip/base/utils.py", line 1277, in run
    i = child.expect(EXPECT_LIST)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
    r, w, e = self.__select([self.child_fd], [], [], timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
    return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

^C
bela@luna:~$

This bug is, of course, a show stopper for many HP gear users, who'll find Wily unusable for them.

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

Do you have python3-dbus.mainloop.qt installed?

If you do not have installed it, install it and try again. Does it work for you now?

Do you have hplip-gui installed?

If you do not have installed it, install it and try again. Does it work for you now?

Please tell here what you exactly did and whether the problem got solved.

Changed in hplip:
status: Confirmed → Incomplete
summary: - hplip-3.15.7-plugin.run doens't return
+ hplip-3.15.7-plugin.run doesn't return
Revision history for this message
FreeMinded (pascal-planetmages) wrote :

Yes, I have python3-dbus.mainloop.qt and hplip-gui installed
Problem is not solved, unfortunately.

Revision history for this message
Magnus (ale-carrazzoni) wrote :

I have the same problem on my debian sid install. When I installed hplip I had to switch to root to install it as otherwise the spinning bar would spin forever after asking my password. Unfortunately hp-plugin cannot be run as root so I have the spinning bar issue here. I think it's a problem when trying to call su.

Here is what my terminal prints:
HP Linux Imaging and Printing System (ver. 3.15.9)
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.

HP Linux Imaging and Printing System (ver. 3.15.9)
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/alejandro/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.9 Plugin Self Extracting Archive............................................

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

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.

Plug-in version: 3.15.9
Installed HPLIP version: 3.15.9
Number of files to install: 38

 - <---- spinning wheel spins forever

^CTraceback (most recent call last):
  File "./plugin_install.py", line 249, in <module>
    ok = installPlugin()
  File "./plugin_install.py", line 56, in installPlugin
    status, output = utils.run(cmd, passwordObj)
  File "/usr/share/hplip/base/utils.py", line 1275, in run
    i = child.expect(EXPECT_LIST)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
    r, w, e = self.__select([self.child_fd], [], [], timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
    return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.

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

When you all get the hang, I get a pop-up asking me for user name and password with my user name pre-filled I enter the password then and the installation finishes successfully.

As I am the only user on my laptop, the account is the privileged account which can execute command as root using "sudo". Perhaps running as unprivileged user the process simply hangs (instead of giving an error telling that the current user is not allowed to do root tasks).

Ubuntu users, please log in as the first (admin/privileged) user and run

hp-plugin

If this does not work, try

sudo hp-plugin

Please tell whether one of these suggestions make the installation working.

Revision history for this message
FreeMinded (pascal-planetmages) wrote :

I can confirm for Kubuntu 15.10 beta2 that I am the only user and privileged to run sudo. The problem still appears.
running sudo hp-plugin -i -g
gets the following

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

error: hp-plugin should not be run as root/superuser

without sudo is the output is exactly the same as in post #6 except for the hplip version.

It worked for me with Kubuntu 14.10...

Revision history for this message
FreeMinded (pascal-planetmages) wrote :

Any news on this issue? It still does not work here. Anyone knows a workaround?

Revision history for this message
Ilya Barygin (randomaction) wrote :

WORKAROUND

1. While the plugin installer is hanging, copy ~/.hplip/plugin_tmp into another directory.
2. Stop the hanging installer.
3. From the directory copy, run "sudo python3 installPlugin.py".
4. Plugin is installed, run hp-setup as normal.

Revision history for this message
Bernd Laser (bernd-laser) wrote : Re: [Bug 1486731] Re: hplip-3.15.7-plugin.run doesn't return

Ilya, thank you very much, this worked for me.

Jiri Popelka <email address hidden> schrieb am Fr., 23. Okt. 2015 um
11:55 Uhr:

> ** Bug watch added: Red Hat Bugzilla #1249414
> https://bugzilla.redhat.com/show_bug.cgi?id=1249414
>
> ** Also affects: fedora via
> https://bugzilla.redhat.com/show_bug.cgi?id=1249414
> Importance: Unknown
> Status: Unknown
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1502578).
> https://bugs.launchpad.net/bugs/1486731
>
> Title:
> hplip-3.15.7-plugin.run doesn't return
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/hplip/+bug/1486731/+subscriptions
>

Revision history for this message
FreeMinded (pascal-planetmages) wrote :

Thanks Ilya for the workaround. That worked. But for some weird reason I can still not print on the printer but that's probably a different story.

A real fix would still be highly appreciated!

Revision history for this message
Arnaldo Adasz (aadasz) wrote :

Same problem on wili werewolf.

I tried on both gui and console, hplip and plugin 3.15.7 and 3.15.9, both still hanged after "Number of files to install: 38".

After a Ctrl+C, shows:

-----------------------------
^CTraceback (most recent call last):
  File "./plugin_install.py", line 184, in <module>
    if not installPlugin():
  File "./plugin_install.py", line 56, in installPlugin
    status, output = utils.run(cmd, passwordObj)
  File "/usr/share/hplip/base/utils.py", line 1275, in run
    i = child.expect(EXPECT_LIST)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
    r, w, e = self.__select([self.child_fd], [], [], timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
    return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed

Done.
-------------------------

But I have python-gobject, python-dbus, python-dbus-dev and python-gobject-dev installed.

Arnaldo

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

Same error with HPLIP 3.15.9

$ rpm -q hplip
hplip-3.15.9-1.fc22.x86_64

The same workaround works as for 3.15.9.
The new plugin URL is https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.9-plugin.run

Revision history for this message
snapy (sdfjsfjaei-hans) wrote :

I've had the same problem on Ubuntu 15.10.

But the workaround worked. Thank you Ilya Barygin (randomaction)! :)

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :
Revision history for this message
In , Gustavo (gustavo-redhat-bugs) wrote :

I can reproduce this in GNOME3. The workaround of comment #13 works for me.

Revision history for this message
Dejan Milosavljevic (dejanmilo) wrote :

Here the same on Ubuntu 15.10. Thanks to Ilya Barygin, your workaround helped me! :-)

Revision history for this message
In , pavka (pavka-redhat-bugs) wrote :

% uname -a
Linux pa 4.2.0-0.bpo.1-amd64 #1 SMP Debian 4.2.6-1~bpo8+1 (2015-11-18) x86_64 GNU/Linux

% hp-plugin

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

***

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

***

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

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

***

Plug-in version: 3.15.11
Installed HPLIP version: 3.15.11
Number of files to install: 42

>>> waiting for a long time <<<

\^CTraceback (most recent call last):
  File "./plugin_install.py", line 249, in <module>
    ok = installPlugin()
  File "./plugin_install.py", line 56, in installPlugin
    status, output = utils.run(cmd, passwordObj)
  File "/usr/share/hplip/base/utils.py", line 1275, in run
    i = child.expect(EXPECT_LIST)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
    r, w, e = self.__select([self.child_fd], [], [], timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
    return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

# dpkg -l | grep python-gobj
ii python-gobject 3.14.0-1 all Python 2.x bindings for GObject - transitional package
ii python-gobject-2 2.28.6-12+b1 amd64 deprecated static Python bindings for the GObject library

# dpkg -l | grep python-dbus
ii python-dbus 1.2.0-2+b3 amd64 simple interprocess messaging system (Python interface)
ii python-dbus-dev 1.2.0-2 all main loop integration development files for python-dbus

###
###
help https://bugzilla.redhat.com/show_bug.cgi?id=1249414#c9

Revision history for this message
Mark Weikinger (mark-weikinger) wrote :

Ditto Ubuntu-Mate 15.10 Thanks Ilya Barygin!

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

*** Bug 1252040 has been marked as a duplicate of this bug. ***

Revision history for this message
Alberto Giorgi (ag-universita) wrote :

Workaround from Ilya Barygin (comment #10) worked here too (Ubuntu 15.10 and HPLIP 3.15.11) . Thank You!

Revision history for this message
Arnaldo Adasz (aadasz) wrote :

Here, with HPLIP 3.15.11 in Ubuntu 15.10, just worked with the workaround.

Revision history for this message
Aimo Ella (aimo-ella) wrote :

I am having the same problem with hplip on Wily Werewolf. I have tried installing hplip 3.15.11 and 3.15.6 instead of the default 3.15.7 but in both cases installation gets stuck after accepting license term. The only solution that worked for me was the workaround first suggested by Ilya Barygin here.

I have some additional comments that I have not see anyone else here mention:

1) when I run hp-check, it says, among other things:
warning: ubuntu-15.10 version is not supported. Using ubuntu-15.04 versions dependencies to verify and install...

2) After installing a number of earlier versions of ubuntu & hplip combo, including this one, I have *always* had to fix protection problems:
chmod go-w ~/.hplip/hplip.conf
chmod go= ~/.hplip/.gnupg/
sudo chmod +r /etc/cups/ppd/HP*.ppd

Especially the wrong protection of the .gnupg directory is pretty unforgivable in my book. The .ppd file protection fix was needed because some (but not all) applications failed to print.

Revision history for this message
Aimo Ella (aimo-ella) wrote :

Sorry, I have to corrrect my statement. It is the plugin installation that gets jammed after license confirmation. The installation, of the whole hplip package, however, gets jammed right after having asked the sudoer password. The hp-doctor command also gets jammed in exactly the same way.

Revision history for this message
goutam (goutamkk) wrote :

I am not able to reproduce this issue on my system ubuntu 15.10 amd64
Can someone help me by providing the debug message output from the below command:

sh hplip-3.15.11-plugin.run -- -ig

You can download the file hplip-3.15.11-plugin.run from here https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.11-plugin.run and run the above command and paste the output here.

This will help us to fix the issue in the code.

Thanks,
goutam

Revision history for this message
Alien_Legat (alienlegat) wrote :

1. Debian 8.2
2. Password?

server@debug:~$ sh hplip-3.15.11-plugin.run -- -ig
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.11 Plugin Self Extracting Archive................................................

HP Linux Imaging and Printing System (ver. 3.15.11 py2.5)
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.15.11
Installed HPLIP version: 3.15.11
Number of files to install: 42

hplip-plugin-install[26143]: debug: pkit_version 1
hplip-plugin-install[26143]: debug: pkit_installed False
You must agree to the license terms before installing the plug-in:

LICENSE TERMS FOR HP Linux Imaging and Printing (HPLIP) Driver Plug-in

...

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
hplip-plugin-install[26143]: debug: Password:
^C
Traceback (most recent call last):
  File "./plugin_install.py", line 184, in <module>
    if not installPlugin():
  File "./plugin_install.py", line 56, in installPlugin
    status, output = utils.run(cmd, passwordObj)
  File "/usr/share/hplip/base/utils.py", line 1252, in run
    i = child.expect(EXPECT_LIST)
  File "/usr/share/hplip/base/pexpect.py", line 1055, in expect
    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect.py", line 1107, in expect_list
    c = self.read_nonblocking (self.maxread, timeout)
  File "/usr/share/hplip/base/pexpect.py", line 663, in read_nonblocking
    r,w,e = self.__select([self.child_fd], [], [], timeout)
  File "/usr/share/hplip/base/pexpect.py", line 1266, in __select
    return select.select (iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
Signal caught, cleaning up

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Alien,

Can you try below steps.

1)Add below entries to the end of EXPECT_WORD_LIST in /usr/share/hplip/base/utils.py
                "Password:",

2) Save the file

3) Run the plugin command again and let me know the result.
     sh hplip-3.15.11-plugin.run -- -ig'

Revision history for this message
FreeMinded (pascal-planetmages) wrote :

I get this

user@Kubuntu:~/Downloads$ sh hplip-3.15.11-plugin.run -- -ig
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.11 Plugin Self Extracting Archive................................................
Error importing HPLIP modules. Is HPLIP installed?
user@Kubuntu:~/Downloads$

and yes hplip 3.15.7-0ubuntu4 is installed.

Thanks goutam for looking into this bug!

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

I see that, you have installed HPLIP-3.15.7 version in your system. Please note that HPLIP version and Plugin version must match otherwise plugin installation will fail. Can you try below steps and let me know the status.

1) Install HPLIP-3.15.11 from http://hplipopensource.com/hplip-web/install/install/index.html

2) Now try steps mentioned in #23, i.e Add below entries to the end of EXPECT_WORD_LIST in /usr/share/hplip/base/utils.py
                 "Password:",

3) Save the file

4) Run the plugin command again and let me know the result.
      sh hplip-3.15.11-plugin.run -- -ig'

Revision history for this message
FreeMinded (pascal-planetmages) wrote :

Hi Sanjay

Unfortunately the HPLIP installer hangs after asking for the sudoer password...
I choose the automatic installation mode and the distro gets discovered correctly (assuming Ubuntu == Kubuntu).

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Please take the files from https://bugs.launchpad.net/hplip/+bug/1510950 and merge/replace them into /usr/share/hplip/base directory and let me know if this fixes the problem.

Thanks,
 Sanjay

Changed in hplip:
status: Incomplete → Fix Committed
Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

There's appeared a fix in upstream bug
https://bugs.launchpad.net/hplip/+bug/1510950

Instructions with how to test a new build (f23) with the patch applied will appear here shortly - it'd be nice if you could give it a try. thanks.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.11-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Revision history for this message
In , Zoltan (zoltan-redhat-bugs) wrote :

I installed hplip 3.15.11-5.fc23 and all its subpackages from koji.

Running "hp-plugin" now brings up the windows to ask for the root password under MATE. It doesn't hang anymore.

I commented on bodhi, too.

Revision history for this message
Sergey Dovganyuk (dovganuk-sergey) wrote :

Sanjay,
I have had tried those files and got no luck. Waits at this

ENTER USER PASSWORD
-------------------
Please enter the sudoer (sergey)'s password:

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.11-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Revision history for this message
Jiri Popelka (jpopelka) wrote :

Sanjay,
one of Fedora users claims (https://bugzilla.redhat.com/show_bug.cgi?id=1249414#c19) that your change fixes the problem for him.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Thanks for the update Jiri. I found some issues in my previous patch (password.py). Please take the updated file (password.py) from https://bugs.launchpad.net/hplip/+bug/1510950 and merge/replace them into /usr/share/hplip/base directory and provide one more patch for Fedora users.

Hi Sergey,

Can you merge/replace the updated password.py from https://bugs.launchpad.net/hplip/+bug/1510950 into /usr/share/hplip/base directory and check. If issue does not get resolved, then please run below command and attach the terminal output here.

"hp-plugin -g"

Thanks,
 Sanjay

Revision history for this message
Sergey Dovganyuk (dovganuk-sergey) wrote :

No luck. Still wait on "sudo". The output is attached.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Sergey,

From the logs I can see that the plugin is already installed in your system.

You can also run below command to check the status of hplip and plugin.

=> hp-check -t

Revision history for this message
Sergey Dovganyuk (dovganuk-sergey) wrote :

Hello Sanjay.
Yes, it is. As I already used workaround to make installation process success.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.11-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.11-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Fixed in hplip-3.16.2

Changed in hplip:
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Sanjay, thanks for fixing this. Can you attach a patch to this bug report so that we can also apply the fix to Ubuntu 15.10? Thanks.

Revision history for this message
Jiri Popelka (jpopelka) wrote :

Till, see the attached files in bug #1510950

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :
Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi Till,

I attached it again here.

Thanks,
Sanjay

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.11-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Revision history for this message
Leandro Scott (lsrzj) wrote :

I confirm that it's fixed in version 3.16.2. Installation now goes perfectly, thanks for the fix Sanjay!

Revision history for this message
In , Laszlo (laszlo-redhat-bugs) wrote :

This bug was opened for Fedora 22, which is still supported, and still very much has this error. I checked Koji, and the most recent hplip build, for Fedora 22, is hplip-3.15.9-3.fc22 <http://koji.fedoraproject.org/koji/buildinfo?buildID=708914>, which very much has the same bug still (see comment 12 -- plus I've encountered it just today).

The differences between hplip-3.15.9-1 (comment 12) and hplip-3.15.9-3 (the most recent Fedora 22 build in Koji) do not address this issue; according to the RPM changelog, those changes target bug 1266903 and bug 1241548. (Which are not listed here as duplicates.)

Hence, in my opinion, this bug has not been fixed. Can you please build the fixed package for Fedora 22 as well? (For now I'll have to try building hplip-3.16.3-1 locally, on Fedora22.) Thanks.

Revision history for this message
In , Laszlo (laszlo-redhat-bugs) wrote :

I could rebuild the hplip-3.16.3-1.fc23 SRPM locally on Fedora 22, and the plugin installation succeeded (although the rotten keyserver timed out -- how frustrating). So please make the fix available for Fedora 22 as well. Thanks!

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.9-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f0a25261f4

Revision history for this message
In , Laszlo (laszlo-redhat-bugs) wrote :

Highly appreciated!

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.9-4.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f0a25261f4

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.15.9-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Changed in fedora:
importance: Unknown → Undecided
status: Unknown → Fix Released
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.