Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1346196

Summary: /usr/lib/cups/filter/hpps uses python -B which is unknown
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: jpopelka, thozza
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hplip-3.15.9-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 06:34:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2016-06-14 08:57:52 UTC
Description of problem:
see /usr/lib/cups/filter/hpps for python declaration

Version-Release number of selected component (if applicable):
hplip-3.15.9-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. add printer color LaserJet Pro MFP M277dw 
2. print a file

Actual results:
cups log:
D [14/Jun/2016:10:43:13 +0200] [Job 156] Started backend /usr/lib/cups/backend/hp (PID 6455)
D [14/Jun/2016:10:43:13 +0200] [Job 156] /usr/bin/env: python -B: No such file or directory
D [14/Jun/2016:10:43:13 +0200] [Job 156] PID 6454 (/usr/lib/cups/filter/hpps) stopped with status 127 (File too large)
D [14/Jun/2016:10:43:13 +0200] [Job 156] Hint: Try setting the LogLevel to "debug" to find out more.
D [14/Jun/2016:10:43:13 +0200] [Job 156] prnt/backend/hp.c 913: ERROR: null print job total=0
D [14/Jun/2016:10:43:13 +0200] [Job 156] PID 6455 (/usr/lib/cups/backend/hp) exited with no errors.
D [14/Jun/2016:10:43:13 +0200] [Job 156] PID 6452 (/usr/lib/cups/filter/texttopaps) exited with no errors.


[psklenar@masox Desktop]$ /usr/lib/cups/filter/hpps
/usr/bin/env: python -B: No such file or directory
[psklenar@masox Desktop]$ echo $?
127
[psklenar@masox Desktop]$ rpm -qf /usr/lib/cups/filter/hpps
hplip-3.15.9-1.el7.x86_64


Expected results:
no such an fail

Additional info:
when I change 
'#!/usr/bin/env python -B' to '#!/usr/bin/env python'
it seems to be OK and I can print, no issues in cups error log

Comment 1 Jiri Popelka 2016-06-14 10:07:43 UTC
(In reply to Petr Sklenar from comment #0)
> Additional info:
> when I change 
> '#!/usr/bin/env python -B' to '#!/usr/bin/env python'
> it seems to be OK and I can print, no issues in cups error log

Zdenek:

take a look at Fedora's spec:

sed -i.env-python -e 's,^#!/usr/bin/env python,#!%{__python2},' \
    prnt/filters/hpps \
    fax/filters/pstotiff

Comment 3 Zdenek Dohnal 2016-06-14 10:24:14 UTC
Ok, I look on to it.

Comment 11 errata-xmlrpc 2016-11-04 06:34:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2444.html