hplip-plugin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hplip-plugin

279 Views
milad
Contributor I

Hi

I'm using SABRE board and it's runnig yocto (Linux imx6qeisd 5.10.52)

I successfully added cups cups-doc cups-filters hplip packages to the image.

The problem is that some hp printers, such as Hp laserjet CP1025 need hplip-plugin for printing (after running hp-setup) but when i try to install the plugin i get these errors:

 

Downloading plug-in from: file:///home/root/hplip-3.19.12-plugin.run
Downloading plug-in: [\                                                                                                                                                                      ] 0%     Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 85, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
    core = core_install.CoreInstall()
  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 118, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 140, in __readAuthType
    distro_name = get_distro_name().lower()
  File "/usr/share/hplip/base/password.py", line 87, in get_distro_name
    import distro
ModuleNotFoundError: No module named 'distro'

 

Seems that the plugin doesn't recognize yocto as distro to install some files.

Is there any way to add hplip-plugin to the yocto image ?

0 Kudos
2 Replies

71 Views
macrobert
Contributor I

too old ...
but must add python3-distro to image

0 Kudos

257 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Make sure that you have install the python version that the apps need, it look like you need to have 3.7 version.

Regards

0 Kudos