diagnose_queues.py crashed with NameError in su_sudo(): global name 'utils' is not defined

Bug #1069324 reported by Dmitry Shachnev
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
hplip (Debian)
Fix Released
Unknown
hplip (Ubuntu)
Fix Released
Medium
Till Kamppeter

Bug Description

The "Diagnose Queues" function in hp-toolbox doesn't work.

This looks very similar to bug 901663 or bug 931190.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: hplip-data 3.12.6-3ubuntu4
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic i686
ApportVersion: 2.6.1-0ubuntu3
Architecture: i386
CrashCounter: 1
CupsErrorLog:
 W [21/Oct/2012:12:23:15 +0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'Photosmart_C4200-Gray..' already exists
 W [21/Oct/2012:12:23:15 +0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'Photosmart_C4200-RGB..' already exists
 W [21/Oct/2012:12:23:15 +0400] CreateDevice failed: org.freedesktop.ColorManager.AlreadyExists:device id 'cups-Photosmart_C4200' already exists
Date: Thu Oct 18 23:03:20 2012
ExecutablePath: /usr/share/hplip/diagnose_queues.py
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
InterpreterPath: /usr/bin/python2.7
Lpstat: device for Photosmart_C4200: hp:/usb/Photosmart_C4200_series?serial=MY798KP16D04VP
MachineType: FUJITSU SIEMENS AMILO Li 1818
PackageArchitecture: all
Papersize: a4
PpdFiles: Photosmart_C4200: HP Photosmart c4200 Series, hpcups 3.12.6
ProcCmdline: /usr/bin/python /usr/bin/hp-diagnose_queues -r
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-17-generic root=UUID=2e8fd81a-2a9c-4223-b8cb-19c24f99764e ro quiet splash vt.handoff=7
PythonArgs: ['/usr/bin/hp-diagnose_queues', '-r']
SourcePackage: hplip
Title: diagnose_queues.py crashed with NameError in su_sudo(): global name 'utils' is not defined
UpgradeStatus: Upgraded to quantal on 2012-09-23 (27 days ago)
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev nopasswdlogin plugdev sambashare tape video
dmi.bios.date: 07/30/2007
dmi.bios.vendor: FUJITSU SIEMENS
dmi.bios.version: 1.14C
dmi.board.name: AMILO Li 1818
dmi.board.vendor: FUJITSU SIEMENS
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU SIEMENS
dmi.modalias: dmi:bvnFUJITSUSIEMENS:bvr1.14C:bd07/30/2007:svnFUJITSUSIEMENS:pnAMILOLi1818:pvr:rvnFUJITSUSIEMENS:rnAMILOLi1818:rvr:cvnFUJITSUSIEMENS:ct10:cvr:
dmi.product.name: AMILO Li 1818
dmi.sys.vendor: FUJITSU SIEMENS

Revision history for this message
Dmitry Shachnev (mitya57) wrote :
information type: Private → Public
Changed in hplip (Ubuntu):
assignee: nobody → Dmitry Shachnev (mitya57)
status: New → In Progress
tags: removed: need-duplicate-check
tags: added: patch
Changed in hplip (Ubuntu):
status: In Progress → Triaged
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

It seems that this code is coming from Ubuntu's kde4-kdesudo-support.dpatch, so removing upstream task.

no longer affects: hplip
Revision history for this message
Dmitry Shachnev (mitya57) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix_nameerror_in_utils_py.debdiff" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Changed in hplip (Debian):
status: Unknown → New
Changed in hplip (Ubuntu):
assignee: Dmitry Shachnev (mitya57) → Till Kamppeter (till-kamppeter)
Changed in hplip (Ubuntu):
status: Triaged → In Progress
Changed in hplip (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.12.11-0ubuntu1

---------------
hplip (3.12.11-0ubuntu1) raring-proposed; urgency=low

  [ Till Kamppeter ]
  * New upstream release
     o Added support for: HP LaserJet Pro 500 color MFP M570dw,
       Pro 500 color MFP M570dn, LaserJet Enterprise flow MFP M525,
       color flow MFP M575, 700 M712n, 700 M712dn, 700 M712xh,
       700 color MFP M775dn, 700 color MFP M775f, 700 color MFP M775z,
       700 color MFP M775z+
     o Secure Printing support for HP LaserJet P3010 Series
     o Job storage support with postscript finishing filter
  * debian/patches/hplip-release-parport.patch: Removed, fixed upstream.

  [ Dmitry Shachnev ]
  * debian/patches/kde4-kdesudo-support.dpatch: Use "which" instead of
    "utils.which", to fix a NameError (LP: #1069324).
 -- Till Kamppeter <email address hidden> Fri, 30 Nov 2012 11:34:00 +0100

Changed in hplip (Ubuntu):
status: Fix Committed → Fix Released
Changed in hplip (Debian):
status: New → Fix Committed
Changed in hplip (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.