file: /usr/share/hplip/data/models/models.dat M281 entry missing family-class

Bug #1745835 reported by Erez Strauss
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Shivani Mandora

Bug Description

Setup a new HP MFP M281 (M278-M281) fails due to a missing line in the printer entry in file:
/usr/share/hplip/data/models/models.dat

See below for a solution (or workaround), as I don't know to which family-class it belongs.

The failure ends with core dump:

$ hp-setup

HP Linux Imaging and Printing System (ver. 3.17.11)
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)

HP Linux Imaging and Printing System (ver. 3.17.11)
Plugin Download and Install Utility ver. 2.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.

HP Linux Imaging and Printing System (ver. 3.17.11)
Plugin Download and Install Utility ver. 2.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.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/user/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys .........
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.17.11 Plugin Self Extracting Archive..................................................

HP Linux Imaging and Printing System (ver. 3.17.11)
Plugin Installer ver. 3.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.

Plug-in version: 3.17.11
Installed HPLIP version: 3.17.11
Number of files to install: 42

note: Using PyQt5

Done.
 Plug-in installation successful

Done.
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'
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)

The solution:

Add the following line for the printer entry:
family-class=Undefined

So the entry starts:
[hp_colorlaserjet_mfp_m278-m281]
align-type=0
clean-type=0
color-cal-type=0
copy-type=0
embedded-server-type=1
fax-type=7
fw-download=False
icon=hp_color_laserjet_cm1312_mfp.png
io-mfp-mode=1
io-mode=1
io-support=14
job-storage=0
linefeed-cal-type=0
family-class=Undefined
model1=HP Color LaserJet MFP M278-M281
monitor-type=0
panel-check-type=0
pcard-type=0

Erez Strauss (z999)
description: updated
Changed in hplip:
assignee: nobody → Shivani Mandora (shivani1709)
status: New → In Progress
Revision history for this message
Thaodan (theodorstormgrade) wrote :

should be merged with:
#1724151

Revision history for this message
Thaodan (theodorstormgrade) wrote :
Revision history for this message
fredbcode (fredbcode) wrote :

Yes there is a typo bug here

Aug 31 18:34:05 Arrakis skanlite: io/hpmud/model.c 543: no kjet_3630_series attributes found in /usr/share/hplip/data/models/unreleased/unreleased.dat

Look at kjet_3630_series

You can temporary fix this with add this block in /usr/share/hplip/data/models/models.dat

[kjet_3630_series]
align-type=15
clean-type=4
color-cal-type=0
copy-type=0
embedded-server-type=1
fax-type=0
fw-download=False
icon=default_printer.png
io-mfp-mode=1
io-mode=1
io-support=10
job-storage=0
linefeed-cal-type=0
model1=HP DeskJet 3630 All-in-One Printer
model2=HP DeskJet 3632 All-in-One Printer
model3=HP DeskJet 3633 All-in-One Printer
model4=HP DeskJet 3634 All-in-One Printer
model5=HP DeskJet Ink Advantage 3630 All-in-One Printer
model6=HP DeskJet Ink Advantage 3635 All-in-One Printer
model7=HP DeskJet Ink Advantage 3636 All-in-One Printer
model8=HP DeskJet Ink Advantage 3638 All-in-One Printer
monitor-type=0
panel-check-type=0
pcard-type=0
plugin=0
plugin-reason=0
power-settings=0
pq-diag-type=0
r-type=0
scan-src=1
scan-type=7
status-battery-check=0
status-dynamic-counters=0
status-type=10
support-released=True
support-subtype=447b
support-type=2
support-ver=3.15.6
tech-class=Pyramid15
tech-subclass=Normal
tech-type=2
usb-pid=e311
usb-vid=3f0
wifi-config=3

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.