after the installation of the snapshot 20200309 I cannot print on a HP Color laserjet M251.
CUPS displays the printer status as “Stopped” and I find the error in /var/log/cups/error_log
12/Mar/2020:11:45:59 +0100] HPLIP_200: File \"/usr/lib/cups/filter/hpps\" not available: No such file or directory
In /usr/lib/cups/filter I see only 2 files related to HP: hpcups and hpcupsfax.
If I try modifying the printer in CUPS I cannot more find the M251 model (it was available before).
As there are many HP Color laserjet using the hpcups driver I selected a printer model (MFP m177fw) using this driver and after restarting CUPS I’m able to print a test page.
Seems that some models have been removed from the list of HP printers.
Question: Does the model choiced have an impact on the printer capabilities?
In the file /etc/cups/printer.conf i have now
MakeModel HP Color LaserJet Pro MFP m177fw, hpcups 3.19.12
DeviceURI hp:/net/HP_Laserjet_200_color_M251n?ip=10.0.4.50
Oops I missed that hplip has been uninstalled. I forced a reinstall but hp-setup fails in a root Konsole
# hp-setup
HP Linux Imaging and Printing System (ver. 3.19.12)
Printer/Fax Setup Utility ver. 9.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.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Found device: hp:/net/HP_LaserJet_200_color_M251n?ip=10.0.4.50
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1305, in NextButton_clicked
self.showAddPrinterPage()
File "/usr/share/hplip/ui5/setupdialog.py", line 711, in showAddPrinterPage
self.findPrinterPPD()
File "/usr/share/hplip/ui5/setupdialog.py", line 790, in findPrinterPPD
self.print_ppd = cups.getPPDFile2(self.mq, self.model, self.ppds)
File "/usr/share/hplip/prnt/cups.py", line 492, in getPPDFile2
family_class=getFamilyClassName(model)
File "/usr/share/hplip/prnt/cups.py", line 182, in getFamilyClassName
family_type= dict[m]'family-class']
KeyError: 'family-class'
Aborted (core dumped)
I have done some tests:
first I removed from YaST all the printers ==> thereafter CUPS says: no printer
I start hp-setup: With the default options I cannot find any printer: I need to select the advanced option ==> manual discovery and enter the ip address. (step 1 of 3) . Then hp-setup find the printer and the model ==> I confirm and after a few seconds the crash occurs
Remark: in firewalld the mdsn and slp port are open
# hp-setup
HP Linux Imaging and Printing System (ver. 3.19.12)
Printer/Fax Setup Utility ver. 9.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.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
error: No devices found on bus: net
error: HPLIP cannot detect printers in your network. This may be due to existing firewall settings blocking the required ports.
When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.
http://hplipopensource.com/node/374
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 740, resource id: 56623665, major code: 40 (TranslateCoords), minor code: 0
Found device: hp:/net/HP_LaserJet_200_color_M251n?ip=10.0.4.50
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1305, in NextButton_clicked
self.showAddPrinterPage()
File "/usr/share/hplip/ui5/setupdialog.py", line 711, in showAddPrinterPage
self.findPrinterPPD()
File "/usr/share/hplip/ui5/setupdialog.py", line 790, in findPrinterPPD
self.print_ppd = cups.getPPDFile2(self.mq, self.model, self.ppds)
File "/usr/share/hplip/prnt/cups.py", line 492, in getPPDFile2
family_class=getFamilyClassName(model)
File "/usr/share/hplip/prnt/cups.py", line 182, in getFamilyClassName
family_type= dict[m]'family-class']
KeyError: 'family-class'
I have also redo “zypper dup” and received some update from geo and packman repository ==> no errors
I added the printer again via CUPS but I cannot print anything >:( and this error is present in cups error_log
E [12/Mar/2020:18:13:00 +0100] [CGI] Unable to connect to \"NPI7F751E.local:631\": Name or service not known
trying to start hplip (hp-toolbox) gives also an error.
philippe@hpprol2:~> hp-toolbox
HP Linux Imaging and Printing System (ver. 3.19.12)
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 "/usr/share/hplip/base/password.py", line 85, in get_distro_name
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/hp-toolbox", line 280, in <module>
toolbox = ui.DevMgr5(__version__, device_uri, None)
File "/usr/share/hplip/ui5/devmgr5.py", line 235, in __init__
core = CoreInstall(MODE_CHECK)
File "/usr/share/hplip/installer/core_install.py", line 240, in __init__
self.passwordObj = password.Password(ui_mode)
File "/usr/share/hplip/base/password.py", line 118, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 140, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 87, in get_distro_name
import distro
ModuleNotFoundError: No module named 'distro'
We cannot see what is installed from these added repos ( Kernel:Head, Factory-Non-Free - which you should not have ). Given the fact that hp-setup works on a number of boxes with TW I have access to, I suspect that the culprit is in there somehow. I don’t see any python errors at all.
Kernel:head, factory-non-free repositories are unactive.
I could install the printer via YaST: defined as a printer server lpd/lpr ==> lpd://ipaddress/LPT1
HPLIP cannot detect printers in your network.
This may be due to existing firewall settings blocking the required ports. When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link. http://hplipopensource.com/node/374
.
The firewalld has the port open for slp and mdns.
Seems that python3-distro is now a requisite for hplip