I recently upgraded hplip and reinstalling my printer's binary plugin after the upgrade failed:
Uncompressing HPLIP 3.14.10 Plugin Self Extracting Archive...............................
File "./plugin_install.py", line 48
SyntaxError: invalid syntax
error: Python gobject/dbus may be not installed
error: Plug-in install failed.
I fixed this by using eselect to choose python-2 instead of python-3 and then switching back to python-3 after installation was complete. Could we have an ELOG message about this?
(In reply to A. Person from comment #0)
> I fixed this by using eselect to choose python-2 instead of python-3 and
> then switching back to python-3 after installation was complete. Could we
> have an ELOG message about this?
No, the script should simply be fixed to use the correct shebang instead.
I have the same bug after updating hplip. Switching to python-2 fixed the problem.
This is not a bug in hplip but in the plugin downloaded by hp-plugin. The python scripts responsible for installing the plugin from the archive have the wrong shebang.
There is nothing I can do about. Also I am not adding an elog message as printers using plugins are not supported by me as I have no ability to test them.