| Summary: | HP device manager gone missing | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Alan Moss <mrasmoss> |
| Component: | RPM Packages | Assignee: | All Packagers <pkg-bugs> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | doktor5000, zen25000 |
| Version: | 6 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | hplip | CVE: | |
| Status comment: | |||
|
Description
Alan Moss
2019-09-20 00:21:52 CEST
Hi Alan, Please run: hp-toolbox ...in a terminal and paste the full output here. Thanks CC:
(none) =>
zen25000 [alanmoss@localhost ~]$ hp-toolbox
error: Unable to locate models.dat file
HP Linux Imaging and Printing System (ver. 0.0.0)
HP Device Manager ver. 15.0
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.
Traceback (most recent call last):
File "/bin/hp-toolbox", line 269, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: 'NoneType' object is not iterable
[alanmoss@localhost ~]$
Thank you Barry for your quick intervention. I am not sure that hplip is the relevant SRPM, but it looks likely. This has no maintainer, so assigning the bug globally; CC'ing Florian as someone who has dealt with it before. Source RPM:
(none) =>
hplip Please provide the output of: ls -l /usr/share/hplip/data/models Check if you have strace installed: rpm -q strace If you don't have strace installed then you can install it with: su urpmi strace exit Then please also paste the output of: strace -o hp-toolbox_strace.txt hp-toolbox && cat hp-toolbox_strace.txt|grep "models.dat" (All one command) Thanks
[alanmoss@localhost ~]$ ls -l /usr/share/hplip/data/models
total 1176
-rw-r--r-- 1 root root 1203897 May 17 12:49 models.dat
[alanmoss@localhost ~]$
[alanmoss@localhost ~]$ strace -o hp-toolbox_strace.txt hp-toolbox && cat hp-toolb0x_strace.txt|grep "models.dat"
error: Unable to locate models.dat file
HP Linux Imaging and Printing System (ver. 0.0.0)
HP Device Manager ver. 15.0
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.
Traceback (most recent call last):
File "/bin/hp-toolbox", line 269, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: 'NoneType' object is not iterable
[alanmoss@localhost ~]$
OOOPs try again
[alanmoss@localhost ~]$ strace -o hp-toolbox_strace.txt hp-toolbox && cat hp-toolbox_strace.txt|grep "models.dat"
error: Unable to locate models.dat file
HP Linux Imaging and Printing System (ver. 0.0.0)
HP Device Manager ver. 15.0
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.
Traceback (most recent call last):
File "/bin/hp-toolbox", line 269, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: 'NoneType' object is not iterable
[alanmoss@localhost ~]$ ^C
[alanmoss@localhost ~]$
Yes I saw the 0, but my error too, sorry, the second part after && won't run if the first part fails, as in your case. /o\ Just run the following now: cd cat hp-toolbox_strace.txt|grep "models.dat" and paste the output here. Thanks. [alanmoss@localhost ~]$ cd
[alanmoss@localhost ~]$ cat hp-toolbox_strace.txt|grep "models.dat"
stat("/home/alanmoss/data/models/models.dat", 0x7fff6071fb00) = -1 ENOENT (No such file or directory)
stat("/home/alanmoss/data/models/models.dat", 0x7fff6071fb00) = -1 ENOENT (No such file or directory)
[alanmoss@localhost ~]$
This has been resolved in private communication. Since Alan's hp-toolbox was looking for models.dat in ~/data/models/ we created that directory and copied models.dat into it. This fixed the 'missing file' error but hp-toolbox still refused to run due to the "TypeError: 'NoneType' object is not iterable" issue. After some Googling it appeared that https://bugs.launchpad.net/hplip/+bug/1719169 may have the answer, so we removed lib64sane-hpaio1 and allowed it to remove 3 other deps. The printer was then reinstalled via MCC->hardware (which re-installed the packages) and now it is working correctly and hp-device-manager is again available from the status and notifications systray list. Closing as resolved, although we still have no idea of the original cause. Resolution:
(none) =>
WORKSFORME |