Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install hp-plugins with Transactional Desktop. #29

Closed
ITwrx opened this issue Mar 22, 2020 · 6 comments
Closed

Can't install hp-plugins with Transactional Desktop. #29

ITwrx opened this issue Mar 22, 2020 · 6 comments

Comments

@ITwrx
Copy link

ITwrx commented Mar 22, 2020

My hp laserjet MFP requires the proprietary plugins [!] and i have it connected to a computer that is running a makeshift Transactional Desktop. hp-plugin fails with some vague error. I suspect it is trying to write somewhere that is read only. Any ideas on a workaround? I don't know where it's trying to write or i guess I could allow writing there.
Thanks

@laenion
Copy link
Collaborator

laenion commented Mar 31, 2020

Please describe what you did: What exactly did you download, how did you install it, and what was (even vague) the error message?

@ITwrx
Copy link
Author

ITwrx commented Mar 31, 2020

sorry i assumed everyone has had the joy of playing with HP's printer plugin nonsense. :)

i downloaded
https://developers.hp.com/sites/default/files/hplip-3.19.12-plugin.run
https://developers.hp.com/sites/default/files/hplip-3.19.12-plugin.run.asc
which was the latest at the time. I also tried another version with the same results, even though i don't think it has to do with a bug in the plugin installer.

I ran "hp-plugin -g".

I selected "install an existing local copy of the plugin file", as the option to download from hp fails a lot due to key servers, etc.

The result is "Plugin Installation Failed." (the vague message i referenced)

and

"Error: Python gobject/dbus may not be installed" (the msg i didn't mention. :))

I have python3-gobject, python-gobject2, python-gobject-common-devel, python3-gobject-devel, python3-dbus-python, and python-dbus-python-common-devel installed.

I think it's trying to write somewhere it can't write to, b/c hp-plugin installs the plugin successfully on the normal TW (same printer and computer, previous normal TW install). I don't think i had to do anything special with normal TW except install from previously downloaded files due to install script limitations/assumptions and key server issues.

thanks

@ITwrx
Copy link
Author

ITwrx commented Apr 16, 2020

@laenion
Copy link
Collaborator

laenion commented Apr 17, 2020

I just tested this now - this is really just a problem with bad error logging of the hplip plugin. It needs both a graphical environment for the root user by default and the package sane-backends installed, but apart from that it should be working out of the box.

One way to install it (using the console interface):

As root:

transactional-update pkg in sane-backends
transactional-update -c shell
cd /tmp
<path to>/hplip-xxx-plugin.run --keep
cd plugin_tmp
python3 plugin-install.py --interactive --logging=debug
exit

You can also directly use the graphical installer from within the transactional-update environment, but that depends on your system configuration on how to start X applications as root.

@laenion laenion closed this as completed Apr 17, 2020
@ITwrx
Copy link
Author

ITwrx commented Apr 18, 2020

i followed your cli instructions (thanks, btw) and the plugin scripts report no errors and seem to install properly. However, after reboot and when trying to print, printing fails with a popup saying that plugins are required. Maybe you didn't/weren't able to actually try printing afterwards?

thanks

@laenion
Copy link
Collaborator

laenion commented Apr 22, 2020

I don't have any HP printer and cannot test this myself, so I won't be able to provide further any assistance here - I just verified that the installation itself was working.

If you can trigger this error with any hplip application I'd suggest using strace -f -efile <hpapplication> and check which files the application is looking for, or check whether there is a debug mode hidden in the software somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants