hp-doctor: UnboundLocalError: local variable 'l' referenced before assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned | ||
hplip (Ubuntu) |
Confirmed
|
Undecided
|
christian |
Bug Description
hp-doctor is trying to parse the Python version. Probably other tools are too.
On Python 2, sys.version is "2.7.14+", whos parts cannot be parsed as an integer.
On Python 3, sys.version is "3.6.5rc1", whos parts cannot be parsed as an integer.
Neither of these will work.
% hp-doctor
Traceback (most recent call last):
File "/usr/bin/
check_
File "/usr/share/
python_ver = xint((sys.
File "/usr/share/
return l
UnboundLocalError: local variable 'l' referenced before assignment
(Note that my printer will only print "Unsupported Personality: UNKNOWN". This is probably an unrelated problem.)
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: hplip 3.17.10+repack0-5
ProcVersionSign
Uname: Linux 4.15.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu1
Architecture: amd64
Date: Tue Mar 27 14:49:56 2018
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: System manufacturer System Product Name
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: hplip
UpgradeStatus: Upgraded to bionic on 2018-02-19 (35 days ago)
dmi.bios.date: 08/13/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2104
dmi.board.
dmi.board.name: P8Z77-V
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
Changed in hplip (Ubuntu): | |
assignee: | nobody → christian (richard-foy) |
status: | Confirmed → New |
Status changed to 'Confirmed' because the bug affects multiple users.