[Jaunty] toolbox.py crashed with AttributeError in join() when using sudo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hplip (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hplip
When starting hp-toolbox using sudo the following error occurs:
jan@PUNDIT:~$ sudo hp-toolbox
[sudo] password for jan:
warning: hp-toolbox should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.9.2)
HP Device Manager ver. 15.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Traceback (most recent call last):
File "/usr/bin/
toolbox = DevMgr5(
File "/usr/share/
self.
File "/usr/share/
QSettings.
File "/usr/lib/
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
jan@PUNDIT:~$
ProblemType: Crash
Architecture: i386
CurrentDmesg:
[ 42.860023] virbr0: no IPv6 routers present
[ 106.624035] Clocksource tsc unstable (delta = -272343052 ns)
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.6
Lpstat:
Gerät für OfficeJet_T: hp:/par/
Gerät für OfficeJet_T1: hp:/par/
Gerät für OfficeJet_T_fax: hpfax:/
Lsusb:
Bus 001 Device 003: ID 0424:2228 Standard Microsystems Corp. 9-in-2 Card Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: System manufacturer System Product Name
NonfreeKernelMo
Package: hplip-data 3.9.2-3ubuntu4
PackageArchitec
Papersize: a4
PpdFiles:
OfficeJet_T: HP Officejet T Series hpijs, 3.9.2
HP_OfficeJet_
HP_OfficeJet_
OfficeJet_T1: HP Officejet T series Foomatic/hpijs, hpijs 2.8.7
OfficeJet_T_fax: HP Fax
ProcAttrCurrent: unconfined
ProcCmdLine: root=UUID=
ProcCmdline: python /usr/bin/hp-toolbox
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
PythonArgs: ['/usr/
SourcePackage: hplip
Title: toolbox.py crashed with AttributeError in join()
UserGroups:
tags: | removed: need-duplicate-check |
visibility: | private → public |
Unfortunately the "original" bug is hidden.
This bug is triggered, because the global property "prop.user_dir" is set to None in hplip/base/ g.py" line 165 ff:
file "/usr/share/
else:
prop. user_dir = None
prop. user_config_ file = None
ConfigBase .__init_ _(self, None)
# If running as root, conf file is None