Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592768 - net-print/hplip-3.16.8 filter error
Summary: net-print/hplip-3.16.8 filter error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-03 10:19 UTC by pste
Modified: 2016-10-16 14:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,16.56 KB, application/x-info)
2016-09-03 10:19 UTC, pste
Details
indenting patch for /usr/libexec/cups/filter/hpps (hpps.diff,613 bytes, patch)
2016-09-20 20:26 UTC, Markus Wernig
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pste 2016-09-03 10:19:53 UTC
Created attachment 444870 [details]
emerge --info

upgrade to hplip-3.16.8 results in filter error (HP LaserJet m402dn), recompiling cups and cups-filters does not solve the problem. However, downgrading to hplip-3.16.7 restores functionality!
Comment 1 Daniel Pielmeier gentoo-dev 2016-09-10 10:13:02 UTC
Did you try deleting the printer queue and setting it up again after upgrading hplip.
Comment 2 Cyril 2016-09-20 05:20:50 UTC
Exactly the same here, with HP LaserJet on network and 3 Gentoo PCs.

Downgrading to hplip-3.16.7 restores functionality to.
Comment 3 Markus Wernig 2016-09-20 20:26:44 UTC
Created attachment 446970 [details, diff]
indenting patch for /usr/libexec/cups/filter/hpps

Same here.

There appears to be an indenting error in /usr/libexec/cups/filter/hpps (oh, Python ...), which causes the script to fail along these lines in /var/log/cups/error_log:

D [20/Sep/2016:14:35:33 +0200] [Job 74] File \"/usr/libexec/cups/filter/hpps\", line 196
D [20/Sep/2016:14:35:33 +0200] [Job 74] secpin += opts[x]
D [20/Sep/2016:14:35:33 +0200] [Job 74] ^
D [20/Sep/2016:14:35:33 +0200] [Job 74] TabError: inconsistent use of tabs and spaces in indentation
D [20/Sep/2016:14:35:33 +0200] [Job 74] prnt/backend/hp.c 919: ERROR: null print job total=0
Comment 4 Tanktalus 2016-10-07 03:38:24 UTC
Same hpps spacing issue in 3.16.9, manually fixing hpps restores printing.
Comment 5 Cyril 2016-10-10 08:11:19 UTC
(In reply to Tanktalus from comment #4)
> Same hpps spacing issue in 3.16.9, manually fixing hpps restores printing.

How do you fix please ?
Comment 6 Markus Wernig 2016-10-10 08:24:43 UTC
(In reply to Cyril from comment #5)

> How do you fix please ?

Either apply the patch in comment #3 or edit /usr/libexec/cups/filter/hpps by hand (as root).
Replace the leading tab ("tabulator") on line 194 with 8 blanks ("spaces"), the two leading tabs on lines 196 and 198 with 8 blanks each, i.e. 16 blanks.
Comment 7 Cyril 2016-10-11 05:14:00 UTC
(In reply to Markus Wernig from comment #6)
> (In reply to Cyril from comment #5)
> 
> > How do you fix please ?
> 
> Either apply the patch in comment #3 or edit /usr/libexec/cups/filter/hpps
> by hand (as root).
> Replace the leading tab ("tabulator") on line 194 with 8 blanks ("spaces"),
> the two leading tabs on lines 196 and 198 with 8 blanks each, i.e. 16 blanks.

Thanks,
Comment 8 Daniel Pielmeier gentoo-dev 2016-10-16 14:24:50 UTC
Fixed in GIT. Thanks for the report!