toolbox.py crashed with AttributeError in retranslateUi(): 'DevMgr5' object has no attribute 'latest_available_version'

Bug #1710378 reported by Till Kamppeter
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
Confirmed
Undecided
Unassigned
hplip (Debian)
Fix Released
Unknown
hplip (Ubuntu)
Fix Released
High
Unassigned

Bug Description

hp-toolbox not starting:

till@till-x1carbon:~$ hp-toolbox

HP Linux Imaging and Printing System (ver. 3.17.7)
HP Device Manager ver. 15.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.

/Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 280, in <module>
    toolbox = ui.DevMgr5(__version__, device_uri, None)
  File "/usr/share/hplip/ui5/devmgr5.py", line 245, in __init__
    self.setupUi(self,"",self.Is_autoInstaller_distro)
  File "/usr/share/hplip/ui5/devmgr_ext.py", line 7, in setupUi
    super(Ui_MainWindow_Derived, self).setupUi(MainWindow)
  File "/usr/share/hplip/ui5/devmgr5_base.py", line 358, in setupUi
    self.retranslateUi(MainWindow)
  File "/usr/share/hplip/ui5/devmgr_ext.py", line 37, in retranslateUi
    if self.latest_available_version is not "":
AttributeError: 'DevMgr5' object has no attribute 'latest_available_version'
till@till-x1carbon:~$

ProblemType: Crash
DistroRelease: Ubuntu 17.10
Package: hplip-data 3.17.7+repack0-2
ProcVersionSignature: Ubuntu 4.11.0-13.19-generic 4.11.12
Uname: Linux 4.11.0-13-generic x86_64
ApportVersion: 2.20.6-0ubuntu5
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Aug 12 11:19:39 2017
Dependencies:
 gcc-7-base 7.1.0-13ubuntu1
 libc6 2.24-12ubuntu1
 libgcc1 1:7.1.0-13ubuntu1
 liblzma5 5.2.2-1.2
 xz-utils 5.2.2-1.2
ExecutablePath: /usr/share/hplip/toolbox.py
InstallationDate: Installed on 2015-04-30 (835 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
InterpreterPath: /usr/bin/python3.6
MachineType: LENOVO 20A8X50300
PackageArchitecture: all
Papersize: letter
ProcCmdline: /usr/bin/python3 /usr/bin/hp-toolbox
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.11.0-13-generic root=UUID=ff9fee12-fd92-4cfd-88bf-c8f57ffba318 ro quiet splash nomdmonddf nomdmonisw vt.handoff=7
PythonArgs: ['/usr/bin/hp-toolbox']
SourcePackage: hplip
Title: toolbox.py crashed with AttributeError in retranslateUi(): 'DevMgr5' object has no attribute 'latest_available_version'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirt libvirtd lpadmin plugdev sambashare sudo wireshark
dmi.bios.date: 09/02/2014
dmi.bios.vendor: LENOVO
dmi.bios.version: GRET40WW (1.17 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20A8X50300
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50512 STD
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrGRET40WW(1.17):bd09/02/2014:svnLENOVO:pn20A8X50300:pvrThinkPadX1Carbon2nd:rvnLENOVO:rn20A8X50300:rvrSDK0E50512STD:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 20A8X50300
dmi.product.version: ThinkPad X1 Carbon 2nd
dmi.sys.vendor: LENOVO

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in hplip:
status: New → Confirmed
tags: removed: need-duplicate-check
Changed in hplip (Debian):
status: Unknown → New
Changed in hplip (Debian):
status: New → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

It is fixed now. Thanks to OdyX from Debian for the quick fix.

Changed in hplip (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To the HPLIP developers at HP. Please apply the fix also upstream. Thanks in advance.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To the HPLIP developers at HP:

The fix is running the following command before building:

sed -i s/self.retranslateUi/#self.retranslateUi/ ui5/devmgr5_base.py

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.