I also hit this issue, it seems get_distro_std_name got renamed but the code didn't get updated.
As a workaround, I managed to get it working with the following changes:
$ diff -u /usr/share/hplip/base/password.py.orig /usr/share/hplip/base/password.py --- /usr/share/hplip/base/password.py.orig 2023-04-22 08:56:30.569359088 +0200 +++ /usr/share/hplip/base/password.py 2023-04-22 08:57:32.449282962 +0200 @@ -116,7 +116,7 @@ # added replace() to remove the spaces in distro_name (os_name,_ver) = utils.get_distro_name() #.lower().replace(" ","") os_name = os_name.lower().replace(" ","") - distro_name = get_distro_std_name(os_name) + distro_name = get_distro_name() self.__authType = user_conf.get('authentication', 'su_sudo', '') if self.__authType != "su" and self.__authType != "sudo": try: @@ -319,7 +319,7 @@ def __get_password_utils_ui(self): (os_name,_ver) = utils.get_distro_name() os_name = os_name.lower().replace(" ","") - distro_name = get_distro_std_name(os_name) + distro_name = get_distro_name() if self.__authType == "sudo": AuthType, AuthCmd = 'sudo', 'sudo %s' else:
I also hit this issue, it seems get_distro_std_name got renamed but the code didn't get updated.
As a workaround, I managed to get it working with the following changes:
$ diff -u /usr/share/ hplip/base/ password. py.orig /usr/share/ hplip/base/ password. py hplip/base/ password. py.orig 2023-04-22 08:56:30.569359088 +0200 hplip/base/ password. py 2023-04-22 08:57:32.449282962 +0200
(os_name, _ver) = utils.get_ distro_ name() #.lower().replace(" ","") lower() .replace( " ","") std_name( os_name)
self. __authType = user_conf. get('authentica tion', 'su_sudo', '') utils_ui( self):
(os_name, _ver) = utils.get_ distro_ name() lower() .replace( " ","") std_name( os_name)
AuthType, AuthCmd = 'sudo', 'sudo %s'
--- /usr/share/
+++ /usr/share/
@@ -116,7 +116,7 @@
# added replace() to remove the spaces in distro_name
os_name = os_name.
- distro_name = get_distro_
+ distro_name = get_distro_name()
if self.__authType != "su" and self.__authType != "sudo":
try:
@@ -319,7 +319,7 @@
def __get_password_
os_name = os_name.
- distro_name = get_distro_
+ distro_name = get_distro_name()
if self.__authType == "sudo":
else: