Error when installing.

Bug #1852169 reported by Paul Helter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

When running `hp-setup` in gui mode, i get the following error:

error: /usr/lib/python3/dist-packages/PyQt4/QtGui.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectE

I've tried uninstalling and installing PyQt4 and PyQt5 multiple times and reinstalling hplip-3.19.11.run several times (automatic).

System is an Ubuntu 18.04, with python3.6 installed.
`hp-check` runs fine - No errors or warnings.

`hp-doctor` runs fine and has no devices (trying to install an MFP M281fdw)

When I try and run `hp-setup -i -g <ipaddr>` in network mode and connect it errors out:

hp-setup[26605]: debug:
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[26605]: debug: 0000: 01 07 01 ec 00 00 65 6e 00 03 22 26 00 00 01 dc 28 78 2d 68 70 2d 76 65 72 3d 30 31 29 28 78 2d ......en.."&....(x-hp-ver=01)(x-
hp-setup[26605]: debug: 0020: 68 70 2d 70 72 6f 64 5f 69 64 3d 54 36 42 38 32 41 29 28 78 2d 68 70 2d 6d 61 63 3d 42 30 30 43 hp-prod_id=T6B82A)(x-hp-mac=B00C
hp-setup[26605]: debug: 0040: 44 31 32 36 45 33 32 41 29 28 78 2d 68 70 2d 67 75 69 64 3d 42 30 30 43 44 31 32 36 45 33 32 41 D126E32A)(x-hp-guid=B00CD126E32A
hp-setup[26605]: debug: 0060: 29 28 78 2d 68 70 2d 6e 75 6d 5f 70 6f 72 74 3d 30 31 29 28 78 2d 68 70 2d 69 70 3d 31 39 32 2e )(x-hp-num_port=01)(x-hp-ip=192.
hp-setup[26605]: debug: 0080: 31 36 38 2e 30 30 31 2e 31 35 31 29 28 78 2d 68 70 2d 68 6e 3d 4e 50 49 32 36 45 33 32 41 29 28 168.001.151)(x-hp-hn=NPI26E32A)(
hp-setup[26605]: debug: 00a0: 78 2d 68 70 2d 70 31 3d 4d 46 47 3a 48 50 3b 43 4d 44 3a 50 4a 4c 2c 50 4d 4c 2c 50 43 4c 58 4c x-hp-p1=MFG:HP;CMD:PJL,PML,PCLXL
hp-setup[26605]: debug: 00c0: 2c 50 57 47 5f 52 41 53 54 45 52 2c 55 52 50 2c 50 43 4c 2c 50 44 46 2c 50 4f 53 54 53 43 52 49 ,PWG_RASTER,URP,PCL,PDF,POSTSCRI
hp-setup[26605]: debug: 00e0: 50 54 3b 4d 44 4c 3a 48 50 20 43 6f 6c 6f 72 4c 61 73 65 72 4a 65 74 20 4d 46 50 20 4d 32 37 38 PT;MDL:HP ColorLaserJet MFP M278
hp-setup[26605]: debug: 0100: 2d 4d 32 38 31 3b 43 4c 53 3a 50 52 49 4e 54 45 52 3b 44 45 53 3a 48 50 20 43 6f 6c 6f 72 20 4c -M281;CLS:PRINTER;DES:HP Color L
hp-setup[26605]: debug: 0120: 61 73 65 72 4a 65 74 20 4d 46 50 20 4d 32 38 31 66 64 77 3b 4d 45 4d 3a 4d 45 4d 3d 32 31 33 4d aserJet MFP M281fdw;MEM:MEM=213M
hp-setup[26605]: debug: 0140: 42 3b 50 52 4e 3a 54 36 42 38 32 41 3b 43 4f 4d 4d 45 4e 54 3a 52 45 53 3d 36 30 30 78 38 3b 4c B;PRN:T6B82A;COMMENT:RES=600x8;L
hp-setup[26605]: debug: 0160: 45 44 4d 44 49 53 3a 55 53 42 23 66 66 23 30 34 23 30 31 3b 43 49 44 3a 48 50 4c 4a 50 44 4c 56 EDMDIS:USB#ff#04#01;CID:HPLJPDLV
hp-setup[26605]: debug: 0180: 31 3b 49 50 50 2d 45 3a 46 46 2d 30 34 2d 30 31 2c 46 46 2d 30 34 2d 30 31 2c 46 46 2d 30 39 2d 1;IPP-E:FF-04-01,FF-04-01,FF-09-
hp-setup[26605]: debug: 01a0: 30 31 2c 46 46 2d 30 39 2d 30 31 3b 65 53 43 4c 3a 46 46 2d 30 34 2d 30 31 2c 46 46 2d 30 34 2d 01,FF-09-01;eSCL:FF-04-01,FF-04-
hp-setup[26605]: debug: 01c0: 30 31 2c 46 46 2d 30 39 2d 30 31 2c 46 46 2d 30 39 2d 30 31 3b 4d 43 54 3a 4d 46 3b 4d 43 4c 3a 01,FF-09-01,FF-09-01;MCT:MF;MCL:
hp-setup[26605]: debug: 01e0: 44 4c 3b 4d 43 56 3a 32 2e 30 3b 29 DL;MCV:2.0;)
hp-setup[26605]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': 'T6B82A', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:HP;CMD:PJL,PML,PCLXL,PWG_RASTER,URP,PCL,PDF,POSTSCRIPT;MDL:HP ColorLaserJet MFP M278-M281;CLS:PRINTER;DES:HP Color LaserJet MFP M281fdw;MEM:MEM=213MB;PRN:T6B82A;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;CID:HPLJPDLV1;IPP-E:FF-04-01,FF-04-01,FF-09-01,FF-09-01;eSCL:FF-04-01,FF-04-01,FF-09-01,FF-09-01;MCT:MF;MCL:DL;MCV:2.0;', 'mac': 'B00CD126E32A', 'ip': '192.168.001.151', 'hn': 'NPI26E32A'}
hp-setup[26605]: debug: Cache miss: hp_colorlaserjet_mfp_m278-m281
hp-setup[26605]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[26605]: debug: Searching for section [hp_colorlaserjet_mfp_m278-m281] in file /usr/share/hplip/data/models/models.dat
hp-setup[26605]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-setup[26605]: debug: Mode=0
error: No device selected/specified or that supports this functionality.

It looks as though it is finding the device, but cannot setup because of something in the configuration.

I'm trying to install the device as a scanner and a printer so I can scan directly from the computer without using the web-page interface.

I am able to find the Printer and install it directly using the Printers->Add... option, just none of the other features.

Thanks.

Revision history for this message
brian_p (claremont102) wrote :

You cannot be bothered to state upfront what your device is. You
cannot even say what version of HPLIP you are are using or what
distribution is.

--
Brian.

Revision history for this message
Paul Helter (phelter) wrote :

The device is provided assuming someone would be 'bothered' to read the log file information.
And after wasting 2 hours debugging a consumer grade product's install issues, I wasn't 'bothered' to provide specific information that is already in the logged hp-setup info.

Here is the information you requested:

Device - MFP M281fdw
Version of HPLIP required 3.19.11 - Distros Ubuntu.
Python version 3.6.8

Please note that the install process you've generated for this is clunky at best. Requires multiple steps and is in no means 'user' friendly. There are several ways to make this easier for a consumer using .deb and .rpm's to install your products for various distros. I suggest you take a look at that.

After rebooting for another reason the hp-setup gui issue is resolved, but still cannot find the HP printer. Adding it via the Ubuntu `Printer->Add` works but I am wanting to have the scan and possibly fax features available on the MFP M281fdw.

The error when looking for the device is:
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 firwall. For detailed steps follow the link hpp:/hplipopensource.com/node/375.

The link does not provide the detailed instructions, Nor looking around for the information on that web page. But based on the log file and information provided, it does in-fact find the device, the database that has the models and searches for them seems to be wrong.

I've tried all 3 Network (direct connection) options SLP, mDNS/Bonjour, and Manual with the <IP Address>

When running `hp-setup -g` With Manual IP Address - this is reported.
hp-setup[24624]: debug: Sys.argv=['/usr/bin/hp-setup', '-g'] printer_name=None param= jd_port=1 device_uri=None remove=False
hp-setup[24624]: debug: Starting GUI Event Loop...
hp-setup[24624]: debug: Cache miss: hp_colorlaserjet_mfp_m278-m281
hp-setup[24624]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[24624]: debug: Searching for section [hp_colorlaserjet_mfp_m278-m281] in file /usr/share/hplip/data/models/models.dat

When running `hp-setup -g` with SLP - same thing is reported but it also reports beforehand:
'Found device:
hp-setup[24624]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': 'T6B82A', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:HP;CMD:PJL,PML,PCLXL,PWG_RASTER,URP,PCL,PDF,POSTSCRIPT;MDL:HP ColorLaserJet MFP M278-M281;CLS:PRINTER;DES:HP Color LaserJet MFP M281fdw;MEM:MEM=213MB;PRN:T6B82A;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;CID:HPLJPDLV1;IPP-E:FF-04-01,FF-04-01,FF-09-01,FF-09-01;eSCL:FF-04-01,FF-04-01,FF-09-01,FF-09-01;MCT:MF;MCL:DL;MCV:2.0;', 'mac': 'B00CD126E32A', 'ip': '192.168.001.151', 'hn': 'NPI26E32A'}

--
Paul.

Revision history for this message
brian_p (claremont102) wrote :

Apologies. I was a bit grumpy. Nine posts before yours is

https://bugs.launchpad.net/hplip/+bug/1851013

You will need a plugin for scanning.

--
Brian.

Revision history for this message
Rowland Barkley (masterexorcist) wrote :

I have exactly that same bug.

I agree with all comments by Paul Helter especially that it is not user friendly to install.
The statement by Brian that "You will need a plugin for scanning." does not help at all. After installing the plugin, HP lip cannot find my printer:
Device - MFP M281fdw
Version of HPLIP 3.19.11

Yet the printer IS already found by the Ubuntu 19.10 Add Printer feature, it is connected, and works, no scanner.

Revision history for this message
brian_p (claremont102) wrote :

You read #1851013?

Please give what you get for 'lpstat -v'.

--
Brian.

Revision history for this message
Paul Helter (phelter) wrote :
Download full text (4.7 KiB)

Here is the info you requested:

`lpstat -v
device for HP-ColorLaserJet-MFP-M278-M281: dnssd://HP%20Color%20LaserJet%20MFP%20M281fdw%20(26E32A)._ipp._tcp.local/?uuid=<UUID value>
device for HP_Color_LaserJet_MFP_M281fdw_26E32A_: ipps://NPI26E32A.local:631/ipp/print
`

I looked at #1851013? and made the change to the following file based on that bug's comments:
`sudo vi /usr/share/hplip/data/models/models.dat` - And remove the erroneous underscore in the data file.

The `hp-setup` then detects the device, but crashes or fails later on because of a python bug. See end of this comment.

I'd like to be perfectly clear here about expectations. I am the customer NOT the debugger and QA engineer responsible for your product's performance or debugging things that should have been tested before the software is provided to customers for consumption. At this point in time, I think it is false advertising to actually state that HPLIP supports this type of device at all.

I am assuming this code is maintained and managed by HP to allow them to state that they support Linux for their devices. If this is the case then my expectations are that you will attempt to recreate the problem in-house and:

1. Setup a computer with Ubuntu 18.04 on it.
2. Acquire the same or similar HP model and add it to the test network the computer is on.
3. Attempt to install your HPLIP 3.19.11 (with all of the fun and joy it brought me) - having to identify the packages and install them separately instead of using an RPM.
4. Go through the setup and documentation you provide on your web page and identify how to get the Scan to work.
5. Document the steps on what is required (as an interim fix so that I may use the device I bought with my linux machine).
6. Identify the fixes necessary for the next version that allows this device to be installed as a fax, and scanner and not just a printer.
7. Post the resulting documented steps and/or provide a time-frame and expected release when the issues will be resolved.

So please reproduce the issue at your end and come up with ALL of the fixes associated with installing Scan and Fax for this device. If you would like further assistance from me, you can reach me by e-mail and I am happy to provide you my consulting rate and an estimate for the work involving fixing solving the issues with your software.

As a customer, I am happy to wait for a response and decide whether to wait for the fixes to the software, or return the product due to the fact that the information about the product here: https://store.hp.com/CanadaStore/Merch/Product.aspx?id=T6B82A&opt=BGJ&sel=PRN is misleading.

As mentioned here is the `hp-setup -g` output where it fails in the python script after fixing the issue mentioned in #1851013.

hp-setup[16863]: debug: ppds=['/usr/share/ppd/HP/HP-Fax-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax4-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax2-hpcups.ppd.gz', '/usr/share/ppd/HP/HP-Fax3-hpcups.ppd.gz']
hp-setup[16863]: debug: Found fax PPD: /usr/share/ppd/HP/HP-Fax-hpcups.ppd.gz
hp-setup[16863]: debug: fax-type=1
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1307, in NextButton_clicked
    s...

Read more...

Revision history for this message
brian_p (claremont102) wrote :

Paul,

You are making assumptions about my relationship with HP
that are unwarranted.

You have set up printing without using the HPLIP software,
which is OK to do. 'hp-setup' is not needed for the scan
function once the necessary edit is done. See

https://forums.linuxmint.com/viewtopic.php?f=51&t=304796&sid=ff1f0bae89f87384a70d473d8c1fe7d6

--
Brian.

Changed in hplip:
status: New → In Progress
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.