Bug 1015977 - [abrt] hpijs-3.13.9-2.fc19: hpps:52:bug:NameError: global name 'log' is not defined
Summary: [abrt] hpijs-3.13.9-2.fc19: hpps:52:bug:NameError: global name 'log' is not d...
Keywords:
Status: CLOSED DUPLICATE of bug 984699
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1747c49fccdebf2b45491650736...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-07 07:59 UTC by kluksa
Modified: 2014-07-17 17:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-07 08:55:25 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (439 bytes, text/plain)
2013-10-07 07:59 UTC, kluksa
no flags Details
File: environ (920 bytes, text/plain)
2013-10-07 07:59 UTC, kluksa
no flags Details

Description kluksa 2013-10-07 07:59:09 UTC
Description of problem:
Tried to print to HP Color LJ 5550 via ipp.

Version-Release number of selected component:
hpijs-3.13.9-2.fc19

Additional info:
reporter:       libreport-2.1.7
cmdline:        python /usr/lib/cups/filter/hpps 136 kraljevic Andro_pozivnica.pdf 6 'HPPhotoHalftone=Detail HPGraphicsNeutralGrays=Black HPGraphicsRGB=sRGB HPTextRGB=sRGB Duplex=None number-up=1 Collate HPEdgeControl=Normal HPPhotoRGB=sRGB noManualFeed HPGraphicsHalftone=Detail ColorModel=Gray noHPStraightPaperPath InputSlot=Auto HPTextHalftone=Detail HPPhotoNeutralGrays=ProcessBlack HPTextNeutralGrays=Black HPCMYKInks=Default PageSize=A4 MediaType=Plain job-uuid=urn:uuid:98540805-64d7-3d98-411c-f7ed70a06180 job-originating-host-name=localhost time-at-creation=1380700040 time-at-processing=1380700040'
executable:     /usr/lib/cups/filter/hpps
kernel:         3.11.1-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            4

Truncated backtrace:
hpps:52:bug:NameError: global name 'log' is not defined

Traceback (most recent call last):
  File "/usr/lib/cups/filter/hpps", line 86, in <module>
    bug("Error importing HPLIP modules:%s %s\n" % (pid, e))
  File "/usr/lib/cups/filter/hpps", line 52, in bug
    log.stderr("ERROR: %s" % m)
NameError: global name 'log' is not defined

Local variables in innermost frame:
m: 'Error importing HPLIP modules:2972 No module named base.g\n'

Comment 1 kluksa 2013-10-07 07:59:14 UTC
Created attachment 808743 [details]
File: backtrace

Comment 2 kluksa 2013-10-07 07:59:17 UTC
Created attachment 808744 [details]
File: environ

Comment 3 Jiri Popelka 2013-10-07 08:55:25 UTC
Looks like the hpps filter needs the same patch as hpfax backend in bug #984699.
I'll check whether there are more places like this and update upstream bug (Launchpad 1201767)

*** This bug has been marked as a duplicate of bug 984699 ***

Comment 4 Sergey Zubov 2014-01-13 07:07:52 UTC
Try to install hplip package. Works for me.

Comment 5 lejeczek 2014-01-15 10:42:20 UTC
I get this hplip crash with my
HP-LaserJet-500-color-M551 when I try to print test page from gnome printers applet
but not with
Hewlett-Packard-HP-LaserJet-P3010-Series
and there are both installed on same one fedora 20

Comment 6 lejeczek 2014-01-15 11:30:00 UTC
sorry, yes, my p3010 runs on hpcups 3.13.11
and yes, hplip solves the problem, besides if we follow instructions @

http://hplipopensource.com/hplip-web/install_wizard/index.html

for HP-LaserJet-500-color-M551 printer then hplip in obviously necessary


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