missing models.dat file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hplip (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Most of the hp-* commands report "error: Unable to locate models.dat file", and are unusable. The "base/models.py" python module expects to find models.dat somewhere near /usr/share/
Sample error message:
# hp-setup 002:034
error: Unable to locate models.dat file
HP Linux Imaging and Printing System (ver. 3.17.7)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP 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.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching for device...
Traceback (most recent call last):
File "/usr/share/
return self.__cache[model]
KeyError: 'hp_laserjet_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
dlg = ui.SetupDialog(
File "/usr/share/
self.initUi()
File "/usr/share/
self.
File "/usr/share/
if self.manualDisc
File "/usr/share/
device_uri, sane_uri, fax_uri = device.
File "/usr/share/
mq = queryModelByURI
File "/usr/share/
return queryModelByMod
File "/usr/share/
return model_dat[model]
File "/usr/share/
if self.read_
File "/usr/share/
fd = open(filename)
TypeError: expected str, bytes or os.PathLike object, not NoneType
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: hplip 3.17.7+repack0-3
ProcVersionSign
Uname: Linux 4.13.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CupsErrorLog: E [19/Jan/
Date: Fri Jan 19 10:40:37 2018
InstallationDate: Installed on 2016-06-05 (593 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: ASUSTeK Computer Inc. G73Sw
Papersize: letter
ProcEnviron:
LANGUAGE=en_CA:en
TERM=xterm-
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: hplip
UpgradeStatus: Upgraded to artful on 2017-10-22 (89 days ago)
dmi.bios.date: 02/10/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: G73Sw.205
dmi.board.
dmi.board.name: G73Sw
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: G73Sw
dmi.product.
dmi.sys.vendor: ASUSTeK Computer Inc.
Status changed to 'Confirmed' because the bug affects multiple users.