*** This bug is a duplicate of bug 2012178 *** https://bugs.launchpad.net/bugs/2012178
** This bug has been marked a duplicate of bug 2012178 toolbox.py crashed with NameError in __readAuthType(): name 'get_distro_std_name' is not defined -- 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/2006460 Title: hp-toolbox fails on load due to call to undefined "get_distro_std_name' function Status in hplip package in Ubuntu: Confirmed Bug description: When starting hp-toolbox from the GUI, nothing happens. From the CLI I get the information : HP Linux Imaging and Printing System (ver. 3.22.10) HP Device Manager ver. 15.0 Copyright (c) 2001-18 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 238, in __init__ core = CoreInstall(MODE_CHECK) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/hplip/installer/core_install.py", line 240, in __init__ self.passwordObj = password.Password(ui_mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/hplip/base/password.py", line 94, in __init__ self.__readAuthType() # self.__authType ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/hplip/base/password.py", line 119, in __readAuthType distro_name = get_distro_std_name(os_name) ^^^^^^^^^^^^^^^^^^^ Changing the instances of get_distro_std_name(os_name) to get_distro_name() as suggested resolved the bug. When installing the plugin for the scanner, the same issue crops up again, here at line 322. An identical substitution allows the plugin installer to complete successfully. ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: hplip-data 3.22.10+dfsg0-1 [modified: usr/share/hplip/base/password.py] ProcVersionSignature: Ubuntu 5.19.0-26.27-generic 5.19.7 Uname: Linux 5.19.0-26-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.24.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown CupsErrorLog: W [07/Feb/2023:11:47:17 +0100] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103 W [07/Feb/2023:11:47:23 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_Color_LaserJet_MFP_M281fdw_5543F1-Gray..\' already exists W [07/Feb/2023:11:47:23 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_Color_LaserJet_MFP_M281fdw_5543F1-DeviceN..\' already exists E [07/Feb/2023:11:47:24 +0100] [Client 17] Returning IPP client-error-not-possible for CUPS-Create-Local-Printer (ipp://localhost/) from localhost. CurrentDesktop: ubuntu:GNOME Date: Tue Feb 7 12:10:42 2023 InstallationDate: Installed on 2020-06-20 (961 days ago) InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Alpha amd64 (20200609) Lpstat: device for HP_Color_LaserJet_MFP_M281fdw_5543F1: implicitclass://HP_Color_LaserJet_MFP_M281fdw_5543F1/ device for HP_ColorLaserJet_MFP_M278-M281: hp:/net/HP_ColorLaserJet_MFP_M278-M281?ip=192.168.0.102 device for HP_ColorLaserJet_MFP_M278-M281_fax: hpfax:/net/HP_ColorLaserJet_MFP_M278-M281?ip=192.168.0.102 MachineType: System manufacturer System Product Name PackageArchitecture: all Papersize: a4 PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP_Color_LaserJet_MFP_M281fdw_5543F1.ppd', '/etc/cups/ppd/HP_ColorLaserJet_MFP_M278-M281.ppd', '/etc/cups/ppd/HP_ColorLaserJet_MFP_M278-M281_fax.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP_Color_LaserJet_MFP_M281fdw_5543F1.ppd: Permission denied grep: /etc/cups/ppd/HP_ColorLaserJet_MFP_M278-M281.ppd: Permission denied grep: /etc/cups/ppd/HP_ColorLaserJet_MFP_M278-M281_fax.ppd: Permission denied ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-26-generic root=UUID=05f71b34-3a5a-42e5-adb6-8a11af401188 ro quiet splash nvidia-drm.modeset=1 vt.handoff=7 SourcePackage: hplip UpgradeStatus: Upgraded to lunar on 2022-12-21 (47 days ago) dmi.bios.date: 10/27/2022 dmi.bios.release: 5.17 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 4408 dmi.board.asset.tag: Default string dmi.board.name: ROG STRIX X570-F GAMING dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev X.0x dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4408:bd10/27/2022:br5.17:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXX570-FGAMING:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: System manufacturer To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/2006460/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp