Note I fixed the bug like this

I fixed the bug like this:

sudo gvim -p /usr/share/hplip/base/password.py

119 #distro_name = get_distro_std_name(os_name)
120 distro_name = get_distro_name()
I commented out 119 and inserted 120 in it's place

-- 
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/2017777

Title:
  hplip

Status in hplip package in Ubuntu:
  New

Bug description:
  1. The release of Ubuntu you are using, via? 
  $ lsb_release -rd
  No LSB modules are available.
  Description:  Ubuntu 23.04
  Release:      23.04

  2. The version of the package you are using, via? 
  $ apt-cache policy hplip
  hplip:
    Installed: 3.22.10+dfsg0-1
    Candidate: 3.22.10+dfsg0-1
    Version table:
   *** 3.22.10+dfsg0-1 500
          500 http://au.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
          100 /var/lib/dpkg/status

  3. What you expected to happen?   
  I expected it to run.

  4. What happened instead? this error

  $ hp-toolbox

  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.

  QSocketNotifier: Can only be used with threads started with QThread
  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)
                    ^^^^^^^^^^^^^^^^^^^
  NameError: name 'get_distro_std_name' is not defined. Did you mean: 
'get_distro_name'?

  I fixed the bug like this:

  
  sudo gvim -p /usr/share/hplip/base/password.py

  119        #distro_name = get_distro_std_name(os_name)
  120        distro_name = get_distro_name()
  I commented out 119 and inserted 120 in it's place

  then it ran fine.

  ProblemType: Bug
  DistroRelease: Ubuntu 23.04
  Package: hplip 3.22.10+dfsg0-1
  ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
  Uname: Linux 6.2.0-20-generic x86_64
  ApportVersion: 2.26.1-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Apr 26 22:07:57 2023
  InstallationDate: Installed on 2023-04-21 (5 days ago)
  InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
  Lpstat:
   device for Brother_HL_2130_series_killashandra: 
implicitclass://Brother_HL_2130_series_killashandra/
   device for HP_OfficeJet_8010: 
hp:/net/HP_OfficeJet_8010_series?ip=192.168.188.17
   device for HP_OfficeJet_8010_killashandra: 
implicitclass://HP_OfficeJet_8010_killashandra/
   device for HP_OfficeJet_8010_series_97968B: 
implicitclass://HP_OfficeJet_8010_series_97968B/
   device for PDF_killashandra: implicitclass://PDF_killashandra/
  MachineType: Gigabyte Technology Co., Ltd. X570 UD
  Papersize: a4
  PpdFiles:
   Error: command ['fgrep', '-H', '*NickName', 
'/etc/cups/ppd/Brother_HL_2130_series_killashandra.ppd', 
'/etc/cups/ppd/HP_OfficeJet_8010_series_97968B.ppd', 
'/etc/cups/ppd/PDF_killashandra.ppd', '/etc/cups/ppd/HP_OfficeJet_8010.ppd', 
'/etc/cups/ppd/HP_OfficeJet_8010_killashandra.ppd'] failed with exit code 2: 
grep: /etc/cups/ppd/Brother_HL_2130_series_killashandra.ppd: Permission denied
   grep: /etc/cups/ppd/HP_OfficeJet_8010_series_97968B.ppd: Permission denied
   grep: /etc/cups/ppd/PDF_killashandra.ppd: Permission denied
   grep: /etc/cups/ppd/HP_OfficeJet_8010.ppd: Permission denied
   grep: /etc/cups/ppd/HP_OfficeJet_8010_killashandra.ppd: Permission denied
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-20-generic 
root=UUID=cc914b12-8999-4260-99ce-6db6d4662c7f ro quiet splash vt.handoff=7
  SourcePackage: hplip
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/07/2020
  dmi.bios.release: 5.17
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: F20
  dmi.board.asset.tag: Default string
  dmi.board.name: X570 UD
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: Default string
  dmi.chassis.version: Default string
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrF20:bd07/07/2020:br5.17:svnGigabyteTechnologyCo.,Ltd.:pnX570UD:pvrDefaultstring:rvnGigabyteTechnologyCo.,Ltd.:rnX570UD:rvrx.x:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
  dmi.product.family: X570 MB
  dmi.product.name: X570 UD
  dmi.product.sku: Default string
  dmi.product.version: Default string
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/2017777/+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

Reply via email to