FS#64546 - [hplip] missing dependency: python-distro

Attached to Project: Arch Linux
Opened by Piotr Miller (nwg) - Sunday, 17 November 2019, 12:25 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 17 November 2019, 17:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

`hp-setup` crashes while downloading plugin:

```
-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from:
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'
error: Failed to install Plugin.
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins.Visit http://hplipopensource.com for more infomation.
```

Installing the `python-distro` package resolves the issue.

Additional info:
* package version(s) 1:3.19.11-2
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

`hp-setup -i`
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 17 November 2019, 17:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.19.11-3

Loading...