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

Bug #901663 reported by Macron
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Invalid
Undecided
Sarbeswar Meher
hplip (Ubuntu)
New
Medium
Unassigned

Bug Description

Printer won't print, previously could print with 11.10, and could not download required plugin via hplip-gui

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: hplip-data 3.11.10-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-3.9-generic 3.2.0-rc4
Uname: Linux 3.2.0-3-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
CrashCounter: 1
Date: Thu Dec 8 20:45:41 2011
ExecutablePath: /usr/share/hplip/toolbox.py
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
InterpreterPath: /usr/bin/python2.7
Lpstat:
 device for HP-LaserJet-P1006: hp:/usb/HP_LaserJet_P1006?serial=AC1V85V
 device for HP_LaserJet_P1006: hp:/usb/HP_LaserJet_P1006?serial=AC1V85V
MachineType: MICRO-STAR INTERNATIONAL CO.,LTD MS-7550
PackageArchitecture: all
Papersize: letter
PpdFiles:
 HP_LaserJet_P1006: HP LaserJet p1006, hpcups 3.11.10, requires proprietary plugin
 HP-LaserJet-P1006: HP LaserJet P1006 Foomatic/foo2xqx (recommended)
ProcCmdline: python /usr/bin/hp-toolbox
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
 LC_CTYPE=C
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-3-generic root=UUID=0db74c43-1214-4249-b891-5ecd38b48a3e ro quiet splash vt.handoff=7
PythonArgs: ['/usr/bin/hp-toolbox']
SourcePackage: hplip
Title: toolbox.py crashed with NameError in su_sudo(): global name 'utils' is not defined
UpgradeStatus: Upgraded to precise on 2011-12-04 (4 days ago)
UserGroups: adm admin cdrom dialout lp lpadmin plugdev sambashare
dmi.bios.date: 09/05/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V1.2
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: DAK790GX Platinum (MS-7550)
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO.,LTD
dmi.board.version: 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO.,LTD
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV1.2:bd09/05/2008:svnMICRO-STARINTERNATIONALCO.,LTD:pnMS-7550:pvr1.0:rvnMICRO-STARINTERNATIONALCO.,LTD:rnDAK790GXPlatinum(MS-7550):rvr1.0:cvnMICRO-STARINTERNATIONALCO.,LTD:ct3:cvr1.0:
dmi.product.name: MS-7550
dmi.product.version: 1.0
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO.,LTD

Revision history for this message
Macron (macronsfx) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Changed in hplip:
assignee: nobody → Sarbeswar Meher (sarbeswar-meher)
Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Ubuntu 12.04 is not yet supported by HPLIP. The code error (su_sudo() in /usr/share/hplip/toolbox.py) is an integration issue by hplip(ubuntu).

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi Macron,

Seems like this is integration issue. Can you use latest HPLIP version from www.hplip.net.

Otherwise can try fixing as follows:-
1) open "/usr/share/hplip/base/utils.py" in root mode.
--> goto line no. 1624
--> remove "utils." keyword.

Note:- "utils.which" keyword need to replace with "which"

Thanks & Regards,
Amarnath

Changed in hplip:
status: New → Invalid
Changed in hplip (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks for reporting this bug. This is an Ubuntu-specific issue, and we are fixing it, see bug 1069324.

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.