Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: hplip (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to hplip in Ubuntu.
https://bugs.launchpad.net/bugs/1744340
Title:
missing models.dat file
Status in hplip package in Ubuntu:
Confirmed
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/hplip/models/models.dat"
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/hplip/base/models.py", line 539, in __getitem__
return self.__cache[model]
KeyError: 'hp_laserjet_professional_p1102w'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 317, in <module>
dlg = ui.SetupDialog(None, param, jd_port, device_uri, remove)
File "/usr/share/hplip/ui5/setupdialog.py", line 189, in __init__
self.initUi()
File "/usr/share/hplip/ui5/setupdialog.py", line 221, in initUi
self.initDiscoveryPage()
File "/usr/share/hplip/ui5/setupdialog.py", line 259, in initDiscoveryPage
if self.manualDiscovery():
File "/usr/share/hplip/ui5/setupdialog.py", line 339, in manualDiscovery
device_uri, sane_uri, fax_uri = device.makeURI(self.param, self.jd_port)
File "/usr/share/hplip/base/device.py", line 416, in makeURI
mq = queryModelByURI(cups_uri)
File "/usr/share/hplip/base/device.py", line 457, in queryModelByURI
return queryModelByModel(model)
File "/usr/share/hplip/base/device.py", line 446, in queryModelByModel
return model_dat[model]
File "/usr/share/hplip/base/models.py", line 545, in __getitem__
if self.read_section(self.released_dat, model):
File "/usr/share/hplip/base/models.py", line 455, in read_section
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
ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13
Uname: Linux 4.13.0-25-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CupsErrorLog: E [19/Jan/2018:09:33:03 -0500] [Job 175] Stopping unresponsive
job.
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-256color
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.13.0-25-generic
root=/dev/mapper/xubuntu--vg-root ro nosplash vga=773 acpi_osi=Linux
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.asset.tag: ATN12345678901234567
dmi.board.name: G73Sw
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias:
dmi:bvnAmericanMegatrendsInc.:bvrG73Sw.205:bd02/10/2011:svnASUSTeKComputerInc.:pnG73Sw:pvr1.0:rvnASUSTeKComputerInc.:rnG73Sw:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: G73Sw
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1744340/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp