Python exceptions in plugin installation in hplip-3.20.9 & linux mint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Hello,
Problem
hp-plugin command aborts because several python exceptions.
I use workaround.
Environment
hplip-3.20.9
linux mint 20, in a virtualbox
HP Deskjet 2700 series
Workaround
Instead of hp-plugin command, I use "sh hplip-3.
(Thank you shivani mandora)
-------
Logs of "hp-plugin -i -g -p hplip-3.
HP Linux Imaging and Printing System (ver. 3.20.9)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
HP Linux Imaging and Printing System (ver. 3.20.9)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
hp-plugin[2530]: debug: Locking: /home/dominique
hp-plugin[2530]: debug: Unable to open file /var/lib/
hp-plugin[2530]: debug: Unable to open file /var/lib/
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
-------
| PLUG-IN INSTALLATION FOR HPLIP 3.20.9 |
-------
---------------
| COPY PLUGIN |
---------------
Downloading plug-in from: file://
Downloading plug-in: [\ ] 0% Traceback (most recent call last):
File "/usr/share/
os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
status, plugin_path, error_str = pluginObj.
File "/usr/share/
core = core_install.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
distro_name = get_distro_
File "/usr/share/
os_name = distro.
File "/usr/lib/
return _distro.
File "/usr/lib/
self.version(),
File "/usr/lib/
self.
File "/usr/lib/
return self._lsb_
File "/usr/lib/
ret = obj.__dict_
File "/usr/lib/
stdout = subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
with os.fdopen(
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/
Original exception was:
Traceback (most recent call last):
File "/usr/share/
os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
status, plugin_path, error_str = pluginObj.
File "/usr/share/
core = core_install.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
distro_name = get_distro_
File "/usr/share/
os_name = distro.
File "/usr/lib/
return _distro.
File "/usr/lib/
self.version(),
File "/usr/lib/
self.
File "/usr/lib/
return self._lsb_
File "/usr/lib/
ret = obj.__dict_
File "/usr/lib/
stdout = subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
-------
Steps to recreate the problems
- create a vbox; take care of usb filter
- install linux mint 20 xfce in the vbox
- verify usb
-- plug the printer, power on the printer
-- type "lsusb", the printer must be in the list
- uninstall the linux mint hplip 3.20.03:
-- sudo apt-get purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds libsane-hpaio libhpmud0 printer-
-- sudo rm -rf /usr/share/hplip/
-- sudo apt-get autoremove
- download hplip 3.20.9, i.e.:
-- hplip-3.20.9-run
-- hplip-3.
-- hplip-3.
-- hplip-3.
put them in a temporary directory, and do the gpg verifications
- in a terminal, execute hplip-3.20.9-run
-- when there is a question in the terminal, accept (tape enter), including on "RESTART OR RE-PLUG IS REQUIRED"
-- continue with the printer setup process.
- open HP Device Manager
-- in the "Actions" tab, there are only 3 actions: only Cups, Visit HPLIP Support Website & Help
-- there are errors lines on the terminal, including
error: Unable to communicate with device (code=12): hp:/usb/
error: Device not found
-- an error popup "HP Device Status" "DeskJet_
- remove ippusbxd
-- sudo apt purge ippusbxd
-- lsusb
-- open HP Device Manager: no errors, and there is a normal list in the "Actions" tab
-- else, if communicate error remains, restart & retry
- install the plugin
-- getting a key from pgp.mit.edu can be very long; give preventively the key from another server:
/usr/bin/gpg --homedir /home/<
-- in a terminal, from the temporary directory, type "hp-plugin -i -g -p hplip-3.
-- the command aborts
-- One can see the errors lines
Hi ,
We will try to fix traceback error on hp-plugin.
Meanwhile, Can you please install plugin using sh command:
$sh 3.20.9-plugin.run
This should not throw any traceback error.