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
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
|
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 .
Thursday, 04 August 2011, 19:17 GMT
Reason for closing: Duplicate
Additional comments about closing: Duplicate of
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..
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.