Bug 25459 - HP device manager gone missing
Summary: HP device manager gone missing
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-20 00:21 CEST by Alan Moss
Modified: 2019-09-24 00:09 CEST (History)
2 users (show)

See Also:
Source RPM: hplip
CVE:
Status comment:


Attachments

Description Alan Moss 2019-09-20 00:21:52 CEST
Description of problem:


First I am a computer user not an expert.

I'm using mageia 6
computer is a Acer ES1-512 laptop
printer is an HP Deskjet F4580

Until recently when I click on the up arrow on the bottom task bar (next to clock) the status & notifications menu opened and had a link to HP device manager, This link has gone.

also when I open the start menu and go to "tools > system tools and click on HP device manager" nothing happens.

I don't use the printer very often but a week or two ago I used HP device manager to set the printer to print 2 pages per sheet now I cant find a way to reset it to 1 page per sheet.

I have tried deleting and re-installing the printer. HP print manager is still missing.
It prints the test page correctly it also prints a picture normally from Gwenview

Any help will be appreciated

Alan Moss 

I don't understand this. but the file that has the info is  

usr/share/hlip/data/models/models.dat

but for some unknown reason the computer has stopped finding it.
Comment 1 Barry Jackson 2019-09-20 12:03:40 CEST
Hi Alan,

Please run:
hp-toolbox
...in a terminal and paste the full output here.

Thanks

CC: (none) => zen25000

Comment 2 Alan Moss 2019-09-20 19:54:32 CEST
[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 ~]$
Comment 3 Lewis Smith 2019-09-20 21:59:40 CEST
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
CC: (none) => doktor5000
Assignee: bugsquad => pkg-bugs

Comment 4 Barry Jackson 2019-09-21 13:41:22 CEST
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
Comment 5 Alan Moss 2019-09-21 23:09:57 CEST
[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 ~]$
Comment 6 Alan Moss 2019-09-21 23:23:16 CEST
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 ~]$
Comment 7 Barry Jackson 2019-09-23 12:32:26 CEST
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.
Comment 8 Alan Moss 2019-09-23 20:41:48 CEST
[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 ~]$
Comment 9 Barry Jackson 2019-09-24 00:09:34 CEST
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
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.