hp printer problem after snapshot 20200309

Hello,

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

Many thanks in advance
Philippe

Hi
Not sure why your using cups? For my HP printers only every used hp-setup and hp-plugin programs.

Did you ever run hp-setup as root user? Does the printer use a plugin (that would be why no driver seen)?

Hey :slight_smile:

Try to reinstall the “hplip” package. (has been updated in this snapshot). The missing “hpps” file is in the package hplip-3.19.12-2.3

hpcups and hpcupsfax can be found in the hplip-hpijshplip-3.19.12-2.3 package

Hello,

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)

Python 3.8 problem?

Regards
Philippe

Please show


rpm -qa | grep hplip

Hello,

# rpm -qa hplip
hplip-3.19.12-2.3.x86_64

This is the current version in tumbleweed repo
Regards
Philippe

Hmmmm, I have the same here, and don’t see this issue. Did the full dup with the python3.8 updates, so I don’t expect that that is the issue.

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

[size=2]hpprol2:~ # zypper lr -u
Repository priorities in effect:                                                                                                                                                                                                          (See 'zypper lr -P' for details)
      95 (raised priority)  :  1 repository  
      98 (raised priority)  :  1 repository  
      99 (default priority) :  7 repositories

#  | Name                        | Enabled | GPG Check | Refresh | URI                                                                             
---+-------------------------------------+-----------------------------+---------+-----------+---------+---------------------------------------------------------------------------------
 1 | Kernel:HEAD                 | No      | ----      | ----    | http://download.opensuse.org/repositories/Kernel:/HEAD/standard                 
 2 | Packman Tumbleweed          | Yes     | (r ) Yes  | Yes     | http://packman.jacobs-university.de/suse/openSUSE_Tumbleweed/                   
 3 | Belgian eID package archive | Yes     | (r ) Yes  | Yes     | http://files.eid.belgium.be/rpm/opensuse/15.0                                   
 4 | nVidia Graphics Drivers     | No      | ----      | ----    | https://download.nvidia.com/opensuse/tumbleweed                                 
 5 | Dépôt principal (Sources)   | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/source/tumbleweed/repo/oss/                        
 6 | games                       | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/games/openSUSE_Tumbleweed/            
 7 | openSUSE:Factory:NonFree    | No      | ----      | ----    | http://download.opensuse.org/repositories/openSUSE:/Factory:/NonFree/standard/  
 8 | my rpm test                 | No      | ----      | ----    | dir:/local/download64/rpm_install                                               
 9 | geo                         | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Tumbleweed/
10 | repo-debug                  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/debug                              
11 | repo-non-oss                | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss                            
12 | repo-oss                    | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss                                
13 | repo-update                 | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/  

[/size]

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'

Regards

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.

Hello,

Kernel:head, factory-non-free repositories are unactive.:slight_smile:
I could install the printer via YaST: defined as a printer server lpd/lpr ==> lpd://ipaddress/LPT1

Now I found one problem with hp-toolbox:
I installed python3-distro after remark found in https://www.linuxquestions.org/questions/slackware-14/hp-toolbox-launch-error-python-3-8-issue-4175667033/ and the hp-toolbox now starts. But hp-setup doesn’t find the printer

 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

Regards
Philippe