Thursday, August 1, 2024

hp printer software does not install on linux ubuntu deepin

/utils.py:2039: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:

HP Linux Imaging and Printing System (ver. 3.16.7)
HPLIP Installer ver. 5.1


Installer log saved in: hplip-install_Thu-01-Aug-2024_18:02:22.log

core_install.py:1899: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if home_dir is "":
Traceback (most recent call last):
  File "/home/g/Downloads/hplip-3.16.7/./install.py", line 241, in <module>
    text_install.start(language, auto, test_depends, test_unknown, assume_network, max_retries, enable, disable)
  File "/home/g/Downloads/hplip-3.16.7/installer/text_install.py", line 60, in start
    core =  CoreInstall(MODE_INSTALLER, INTERACTIVE_MODE)
  File "/home/g/Downloads/hplip-3.16.7/installer/core_install.py", line 225, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 110, in __init__
    self.__readAuthType()  #self.__authType   
  File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 133, in __readAuthType
    distro_name =  get_distro_name().lower()
  File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 79, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'