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.
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) => hplipCC: (none) => doktor5000Assignee: bugsquad => pkg-bugs
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) => WORKSFORMEStatus: NEW => RESOLVED