Bug 1544788 - HP ColorLaserjet MFP M278-M281 missing family-class
Summary: HP ColorLaserjet MFP M278-M281 missing family-class
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 27
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1544912
TreeView+ depends on / blocked
 
Reported: 2018-02-13 13:58 UTC by Julius
Modified: 2018-02-19 09:40 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 1544912 (view as bug list)
Environment:
Last Closed: 2018-02-19 09:40:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
hp-setup --debug (10.83 KB, text/plain)
2018-02-13 16:37 UTC, Julius
no flags Details
hp-setup --debug with new rpms (3.17.11-5) (20.89 KB, text/plain)
2018-02-13 17:14 UTC, Julius
no flags Details
gnome-settings initialization (28.02 KB, image/png)
2018-02-13 17:15 UTC, Julius
no flags Details
hp-setup initialization (30.75 KB, image/png)
2018-02-13 17:16 UTC, Julius
no flags Details

Description Julius 2018-02-13 13:58:25 UTC
Description of problem:

Using fedora 27 and the current hplip 3.17.11-4 scanning does not work over network and the printer is registered as PCL3 or textprinter. If i switch manually to hp m277 printing over network does work, but scanning is still not possible. 

Version-Release number of selected component (if applicable):
fedora 27 and the current hplip 3.17.11-4

Steps to Reproduce:
Using hp-setup for network setup results in a segmentation fault

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'

Using the gnome-settings menu the installation works for the printer only. No Network scanning capabilities are available.

On the other hand printing AND scanning via usb is working fine.


Expected results:
scanning via network

Comment 1 Fritz Elfert 2018-02-13 14:46:48 UTC
@Julius
2 Tips for debugging this locally:

1. Invoke hp-setup in a console using the --debug switch.

This prints helpful information about the printer-detection process.
Background: I happens quite often that HP simply changes the firmware slightly even for the same "official" Model resulting in errors during printer detection. Usually the changed model-data simply has to be added to the models.dat in order to work.

2. Disable any password protection of the printer's web-interface before running hp-setup.
Background: the hplip toolbox currently cannot handle password-protected SOAP-API of the printer.

Good luck
 -Fritz

Comment 2 Julius 2018-02-13 16:37:08 UTC
"Disable any password protection of the printer's web-interface before
running hp-setup"

According to the web interface the administrator password is off. It is feely accessible via http.

"Invoke hp-setup in a console using the --debug switch."
See the attachment

Comment 3 Julius 2018-02-13 16:37:43 UTC
Created attachment 1395538 [details]
hp-setup --debug

Comment 4 Zdenek Dohnal 2018-02-13 16:49:00 UTC
Hi Julius,

thank you for filing this bug - would you mind trying these rpms https://koji.fedoraproject.org/koji/taskinfo?taskID=25006675 ? It should fix 'hp-setup' issue. Then we can see if there is another problem.

Comment 5 Julius 2018-02-13 17:14:31 UTC
Created attachment 1395564 [details]
hp-setup --debug with new rpms (3.17.11-5)

It does work now. But only if i use hp-setup. The gnome printer setting initalizes it in a different way. See the two attached images.

Comment 6 Julius 2018-02-13 17:15:59 UTC
Created attachment 1395565 [details]
gnome-settings initialization

Comment 7 Julius 2018-02-13 17:16:31 UTC
Created attachment 1395566 [details]
hp-setup initialization

Comment 8 Zdenek Dohnal 2018-02-13 18:01:29 UTC
I'm not sure how gnome-settings installs scanners to be honest... HP scanners mostly needs HPAIO backend to work (uri with this backend is created when you issued 'hp-setup') and I think current libsane (part of sane-backends - it is probably called by d-bus call when gnome-settings gets notify about new scanner device) cannot manage creation of HPAIO uri by itself now.
But it is other issue and hplip is not on fault here (IIUC, scanner works after setting with 'hp-setup' and with rpms attached above), but gnome-settings or rather sane-backends. I'll fix 'hp-setup' issue in this bug and I'll create a new bugzilla for other.

Comment 9 Fedora Update System 2018-02-14 12:28:19 UTC
hplip-3.17.11-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-9f748f5531

Comment 10 Fedora Update System 2018-02-14 18:28:24 UTC
hplip-3.17.11-8.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-9f748f5531

Comment 11 Julius 2018-02-15 13:48:42 UTC
It is still initialized as generic PCL3 printer. There is a popup from gnome-software asking for missing software if i install via gnome-settings.

Comment 12 Zdenek Dohnal 2018-02-15 13:55:27 UTC
(In reply to Julius from comment #11)
> It is still initialized as generic PCL3 printer. There is a popup from
> gnome-software asking for missing software if i install via gnome-settings.
That's correct behavior - your printer needs proprietary plugin, which is in hplip, so gnome-software wants to install hplip, which provides driver for your printer.

Please refer to correct bug (cloned to #1544912) - this bugzilla solves only 'hp-setup' issue, as I wrote in comment #8.

Comment 13 Zdenek Dohnal 2018-02-15 14:00:41 UTC
(In reply to Zdenek Dohnal from comment #12)
> (In reply to Julius from comment #11)
> > It is still initialized as generic PCL3 printer. There is a popup from
> > gnome-software asking for missing software if i install via gnome-settings.
> That's correct behavior - your printer needs proprietary plugin, which is in
> hplip, so gnome-software wants to install hplip, which provides driver for
> your printer.
Then you need to run 'hp-plugin -i', because your printer needs that proprietary plugin and that command downloads it and put it in correct place - gnome-settings won't do it probably because of licensing problems of that proprietary plugin.

Comment 14 Fedora Update System 2018-02-16 17:48:06 UTC
hplip-3.17.11-8.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.