Opensuse 13.1 hp-plugin hangs on install

Asked by federbear

Hp-plugin install waits (several hours) after this text:

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

hp-check didn't show any error.

Opensuse 13.1 X86_64
Kernel: 3.11.10-29-default

I have tried to install both from source and repository.

GUI windows seems to be ok. Printer is detected but the plugin install hangs.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
goutam
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
goutam (goutamkk) said :
#2

Hi,

Sorry for late response on this.

Please download the hplip-3.15.11-plugin.run file from here https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.11-plugin.run

Run below command in terminal and provide its terminal output here for analysis.

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

Thanks,
Goutam

Revision history for this message
federbear (federbear) said :
#3

Hi!

Thanks for your response!

The script has written debug lines: hplip-plugin-install[10290]: debug: Password:
With root user: hp-plugin should not be run as root/superuser. Exiting.

My user is member of the lp and sys groups.

Laszlo

Revision history for this message
goutam (goutamkk) said :
#4

Can you let us know the python version getting used : python --version

Revision history for this message
federbear (federbear) said :
#5

Python 2.7.6

Revision history for this message
goutam (goutamkk) said :
#6

Thank you for providing python version.

I tried to reproduce the issue here in OpenSUSE 13.1 but unfortunately i am not able to reproduce it. For me the command 'sh hplip-3.15.11-plugin.run -- -ig' working fine without any hang at the password prompt.

I need your help to rood cause this issue.

Can you run the below command:

su -c " sed -i 's/"passwor\[dt\]:",/"passwor\[dt\]:" ,"Password:",/' /usr/share/hplip/base/utils.py

and re-run the command 'sh hplip-3.15.11-plugin.run -- -ig' and provide its complete terminal output here.

Thanks,
Goutam

Revision history for this message
federbear (federbear) said :
#7

I have tried again without success. Is it possible to the localization counts? My region is "hu" and the "Jelszó:" word means Password:

I have found two similar bugreports:

https://bugzilla.redhat.com/show_bug.cgi?id=1249414
http://forums.fedoraforum.org/showthread.php?t=306539

My output is:

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ?
hplip-plugin-install[5147]: debug: Jelszó:
hplip-plugin-install[5147]: debug: Jelszó:
hplip-plugin-install[5147]: debug: Jelszó:
^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 1276, 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
Signal caught, cleaning up

Revision history for this message
goutam (goutamkk) said :
#8

Hi Federbear,

Thank you for providing more information.

Ya this could be because of localization. Can you run the below command ,
su -c " sed -i 's/"passwor\[dt\]:",/"passwor\[dt\]:" ,"Jelszó:",/' /usr/share/hplip/base/utils.py"

and re-run the command 'sh hplip-3.15.11-plugin.run -- -ig' and let us know if it is able to take the password.

Thanks,
Goutam

Revision history for this message
federbear (federbear) said :
#9

Hi!

Nothing is changed.

The affected codeline:

"passwor[dt]:", "Jelszó:", "Password:", # en/de/it/ru

I have tried it with different values without influence.

regards,
federbear

Revision history for this message
Best goutam (goutamkk) said :
#10

Can the affected codeline to this:

"passwor[dt]:", u"Jelszó:", "Password:", # en/de/it/ru

(add a small 'u' in front of "Jelszó:")

Re-try the command :

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

Revision history for this message
goutam (goutamkk) said :
#11

Can you change the affected codeline to this:

"passwor[dt]:", u"Jelszó:", "Password:", # en/de/it/ru

(add a small 'u' in front of "Jelszó:")

Re-try the command :

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

Revision history for this message
federbear (federbear) said :
#12

Finally I got prompt and the result:

"Executing installPlugin.py

Done."

Thanks for help!

Regaards,
federbear

Revision history for this message
federbear (federbear) said :
#13

Thanks goutam, that solved my question.