Cannot add HP P55250dw printer from hp-setup

Bug #1793504 reported by gerlos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

I'm trying to install a HP Pagewide Managed P55250dw printer using "hp-setup" right after I installed hplip using hplip-3.18.7.run automatic installer on Ubuntu 18.04.

First I run:

$ hp-setup

Then in the "Device discovery" window I choose Network/Ethernet/Wireless → Next → selected HP p55250 → Next

After I clicked "Next", I got an error on the terminal, and it's impossible to continue.

Here's the full output from hp-setup:

HP Linux Imaging and Printing System (ver. 3.18.7)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 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.

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1307, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 713, in showAddPrinterPage
    self.findPrinterPPD()
  File "/usr/share/hplip/ui4/setupdialog.py", line 792, 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'

Revision history for this message
srinivas (srinivas5) wrote :

Hi,

Were you able to add the printer by selecting the USB option?
If you have your printer connected in Network, can you please try "hp-setup <ip of printer>" command to add the printer and update me the results.

Also share the hp-check output.

Thanks,
Srinivas Teja.

Changed in hplip:
status: New → In Progress
Revision history for this message
gerlos (gerlosgm) wrote :

thanks for your answer,
The printer is connected to our network, and I can't connect it via USB at the moment, since it's used by others.

Here's the output from "hp-setup <ip of printer>".

Once I run it I see the printer already selected in the "Select From Discovered Device" window, so I click "Next" and get the first traceback error you see below. Then the "Next" button changes in "Add printer" and once I click it I get the second error. I then click "Cancel" ad get the "Done" message on the terminal.

$ hp-setup 192.168.0.47

HP Linux Imaging and Printing System (ver. 3.18.7)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 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.

Searching for device...
Found device: hp:/net/HP_PageWide_P55250?ip=192.168.0.47
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1307, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 713, in showAddPrinterPage
    self.findPrinterPPD()
  File "/usr/share/hplip/ui4/setupdialog.py", line 792, 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'
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1307, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 713, in showAddPrinterPage
    self.findPrinterPPD()
  File "/usr/share/hplip/ui4/setupdialog.py", line 792, 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'

Done.

Revision history for this message
gerlos (gerlosgm) wrote :
Download full text (10.2 KiB)

Here's the output from hp-check command:

$ hp-check
Saving output in log file: /home/gerlos/hp-check.log

HP Linux Imaging and Printing System (ver. 3.18.7)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 GNU/Linux
 Host: lt-tolman-viola
 Proc: 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.18.7
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 18.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.