Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 534130

Summary: net-print/hplip with system python >2 - hp-plugin: SyntaxError: invalid syntax
Product: Gentoo Linux Reporter: A. Person <tesoro302>
Component: [OLD] PrintingAssignee: Daniel Pielmeier <billie>
Status: RESOLVED CANTFIX    
Severity: normal CC: printing
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description A. Person 2014-12-31 18:00:34 UTC
I recently upgraded hplip and reinstalling my printer's binary plugin after the upgrade failed:

# hp-plugin
...
Uncompressing HPLIP 3.14.10 Plugin Self Extracting Archive...............................
  File "./plugin_install.py", line 48
    except ImportError,e:
                      ^
SyntaxError: invalid syntax
error: Python gobject/dbus may be not installed
error: Plug-in install failed.
Done.

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?

https://bugs.launchpad.net/hplip/+bug/891080/comments/10

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-02 18:46:13 UTC
(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.
Comment 2 Egor 2015-01-03 09:17:43 UTC
I have the same bug after updating hplip. Switching to python-2 fixed the problem.
Comment 3 Daniel Pielmeier gentoo-dev 2015-01-30 12:24:10 UTC
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.