Comment 4 for bug 2003739

Revision history for this message
Sadi Yumuşak (sa-yu) wrote :

After proprietary plugin couldn't be installed on Debian 12 (Bookworm) with hplip 3.22.10 installed from repositories, I removed the package to manually install from hplip-3.22.6.run which gave this message:

error: debian-n/a version is not supported, so all dependencies may not be installed. However trying to install using debian-11 version packages.

So, it was only possible to continue with the installation using debian-11 version packages.
This was completed with only this message:

warning: CUPSEXT could not be loaded. Please check HPLIP installation.

Manual installation from hplip-3.22.6-plugin.run however came to the same dead end as hplip-3.22.10-plugin.run

Traceback (most recent call last):
  File "/tmp/selfgz59070/./plugin_install.py", line 75, in <module>
    import class_plugin
    ^^^^^^^^^^^^^^^^^^^
  File "/tmp/selfgz59070/class_plugin.py", line 186, in <module>
    distro_name = get_distro_name().lower()
                  ^^^^^^^^^^^^^^^^^
  File "/tmp/selfgz59070/class_plugin.py", line 65, in get_distro_name
    os_name = platform.dist()[0]
              ^^^^^^^^^^^^^
AttributeError: module 'platform' has no attribute 'dist'

It seems there's a problem with getting distro name, which can be handled by during the installation of hplip, but not proprietary plugin...