FS#25379 - [hplip] does work due to default incompatible python interpreter

Attached to Project: Arch Linux
Opened by Alexander (infestator) - Wednesday, 03 August 2011, 05:48 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Thursday, 04 August 2011, 19:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In HPLIP 3.11.x there is problem with configuring binary plugin because of /usr/bin/python3 is set as default Python interpreter. Switching to /usr/bin/python2 (ln -sf /usr/bin/python2 /usr/bin/python) makes hp-plugin script working right.

Additional info:
* extra/hplip 3.11.7 (I have also tested it with 3.11.5 and 3.11.3 versions)
* also I have noticed that hp-toolbox hangs when I am trying to add printer through it by non-root user and does not work when I try to launch it under root user from non-root X environment (it cannot connect to dbus); I think this is not critical

Steps to reproduce:
1. install hplip
2. run hp-setup or hp-plugin to install new printer
3. select either automatic or manual plugin install
3. the plugin installation fails with default python interpreter

Workaround:
ln -sf /usr/bin/python2 /usr/bin/python
This task depends upon

Closed by  Rémy Oudompheng (remyoudompheng)
Thursday, 04 August 2011, 19:17 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Duplicate of  FS#22788 , of  FS#24372 , and of  FS#24968 .
Comment by Jelle van der Waa (jelly) - Thursday, 04 August 2011, 09:13 GMT
That workaround screws your whole system,.. Also you must be root to use hp-plugin and for hp-setup. The real error is, which is if hp-plugin downloads it's own python files not a arch bug.
File "./plugin_install.py", line 78
except ImportError, e:

[jelle@P8][~/Downloads]%pkgfile plugin_install.py
[jelle@P8][~/Downloads]%

This really sounds like a hplip upstream bug..
Comment by Alexander (infestator) - Thursday, 04 August 2011, 09:29 GMT
okay, after running hp-plugin the link to /usr/bin/python3 can be restored :)
so may be there should be a patch for hp-plugin script to make all downloaded files to use python3 instead of default? :)

as far as I know Python 3 is not backward compatible with Python 2, and there is requirement on HPLIP homesite for Python 2.2 or higher, not Python 3. (http://hplipopensource.com/hplip-web/install/manual/distros/other.html)

actually I have spent about two hours before understood that bug is actually in Python interpreter.

Loading...