[master] hp-plugin not working - stuck on permission

Bug #1510950 reported by Dutoit
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
HPLIP
Confirmed
Undecided
Unassigned
Fedora
Unknown
Unknown

Bug Description

On linux slackware64-current, with hplip-3.15.9, printer : HP Laserjet pro P1102
hp-plugin never ends after

            Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

I have tried "hp-plugin" and "hp-plugin -g -i"

Revision history for this message
goutam (goutamkk) wrote :

Hi,

Can you please provide us the complete terminal output of 'hp-plugin -i -g' command here.

Thanks,
goutam

Revision history for this message
Dutoit (wcth241) wrote :

Here it is, in a rather big attachment, "hp-plugin -g -i", finished with a Ctrl-C

Revision history for this message
goutam (goutamkk) wrote :

Thank for the command output.
We are working on it.

Thanks,
Goutam

Revision history for this message
goutam (goutamkk) wrote :

Can you manually download the plug-in files from below location
https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.9-plugin.run
https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.9-plugin.run.asc

Run command 'sh hplip-3.15.9-plugin.run' as root/super user to install the plugin files.

Thanks,
Goutam

Revision history for this message
Dutoit (wcth241) wrote :

When I do 'sh hplip-3.15.9-plugin.run' as root I have the message:

Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.9 Plugin Self Extracting Archive............................................
hp-plugin should not be run as root/superuser. Exiting.

When running it a a user I get:

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

and it never ends.

Revision history for this message
Ernesto (ernestogaber) wrote :

I have the same problem...

I have not been able pach proportional to install the plugin manually. What is the pach I should write if the plugin in / Desktop?

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

Well, it seems this issue is the same I'm having and filed here at launchpad with number 1518977. But you are trying on terminal, and I tried it with a GUI. After I accept the EULA, it gets stuck and does nothing,same case as yours, but on a terminal screen. But as I'm curious about everything, I explored all files and directories involved on the plugin installation and discovered a solution to workaround it. You go to ~/.hplip/plugin_tmp and execute manually sudo python installPlugin.py and then force close the hp-plugin installation. The plugin is now installed.

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

The other way you tried that stopped at number of files to install: 38 is solved the same way. Go to the folder where the plugin installation extracts it's files seek plugin_tmp folder and execute sudo python installPlugin.py

Revision history for this message
Dutoit (wcth241) wrote :

I have also installed the plugins (for hplip-3.5.11). Nothing works with a GUI. I tried from a terminal, and when it stopped I copied all the plugins in a subdirectory of ~/.hplip/ (I don't remember which) to a the directory firmware/ created in /usr/share/hplip/data/ . I had then to create the file /var/lib/hp/hplip.state containing

[plugin]
installed = 1
eula = 1
version = 3.15.11

And it worked.

Revision history for this message
Norberto (norberto2t) wrote :

Yes, it worked for me: entering plugin_tmp folder and then executing python installPlugin.py.
Thank you, guys!

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

It would be better if everybody that is affected mark the option this bug affects me. This way will call attention to the problem

Changed in hplip:
status: New → Confirmed
Revision history for this message
Andreas Werner (andreas-werner-h) wrote :

On a clean Ubuntu 15.10 x64 installation, I have the same issue. Installation hangs in the GUI- and in the terminal-version.

when is execute hplip-plugin -i it hangs with rotating "|". When I terminate the program (CRTL-C) I get some Python Traceback messages which may be helpful:

/^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 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

I attach the complete output.

If any further information is required, please let me know.

Andreas

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

From the stack trace you can see that it stopped at line 56 of the plugin_install.py file when you aborted the execution. This line runs this command: status, output = utils.run(cmd, passwordObj), for some unknown reason it's getting stuck in there.

the installPlugin() function source is this, notice that it will try to execute installPlugin.py with an appended %s variable with an argument formed by %exec_str, so I discovered that, before canceling, you can go to the folder where the plugin is extracted go to plugin_tmp directory and execute manually sudo python installPlugin.py, than you will have the plugin installed.

I'm not a python programmer, but the stack trace shows where the problem is, so someone else could debug it and check why it gets stuck in this line.

def installPlugin():
    exec_str = sys.executable
    passwordObj = password.Password(mode)
    cmd = "%s installPlugin.py"%exec_str
    cmd = passwordObj.getAuthCmd()%cmd
    status, output = utils.run(cmd, passwordObj)
    if status == 0:
        result = True
    else:
        print("Plugin installation failed")
        result = False
    return result

Revision history for this message
goutam (goutamkk) wrote :

Can someone provide me 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.

Thanks,
Goutam

Revision history for this message
Andreas Werner (andreas-werner-h) wrote : Re: [Bug 1510950] Re: hp-plugin not working

Hi Goutam,

the answere is yes:

-- BEGIN --
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.11 Plugin Self Extracting
Archive................................................
Error importing HPLIP modules. Is HPLIP installed?
-- END --

But I have installed the Version 3.15.5, which comes with ubuntu.

Andreas

Am 06.01.2016 um 07:54 schrieb goutam:
> Can someone provide me 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.
>
> Thanks,
> Goutam
>

Revision history for this message
goutam (goutamkk) wrote : Re: hp-plugin not working

Thank you Andreas for trying out the command. But hplip-3.15.11 version has to be installed.
Can you download hplip-3.15.11.run file http://hplipopensource.com/hplip-web/gethplip.html and run command
'sh hplip-3.15.11.run' to install.

After install, run command sh hplip-3.15.11-plugin.run -- -ig and provide its output here.

This will really help us to root cause this issue.

Thank you,
Goutam

Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

possibly duplicate of bug #1521006 (hplip-3.15.11 setup gets stuck) - mentioned workaround worked4me

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

This report is older than the one you pointed flames in paradise, so the one you pointed is duplicate of this one. I already marked it as duplicate of this report.

summary: - hp-plugin not working
+ [master] hp-plugin not working - stuck on permission
Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello All,

Can you replace/merge "password.py" and "utils.py" files from the attachment into (/usr/share/hplip/base) directory and let me know the result.

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

Hello All,

Can you replace/merge updated "password.py" file from comment #22 and "utils.py" file from #21 into (/usr/share/hplip/base) directory and let me know the result.

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
Jiri Popelka (jpopelka) wrote :

Sanjay,

the files (password.py) in #22 and #20 are identical. Are you sure, you uploaded correct one ?

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

Hi Jiri,

By mistake, I updated the same file. I have attached the correct file in #25.

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.