Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64656 - hplip crashed after running hplip-setup

Attached to Project: Arch Linux
Opened by Ali (strongsaxophone) - Tuesday, 26 November 2019, 16:41 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 26 November 2019, 16:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: After running hplip-setup I got this:
```
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'

File "password.py", line 38, in get_distro_name
import distro
ModuleNotFoundError: No module named 'distro'
```
I searched in password.py file and I commented these lines and It solved my
problem and it is running without problem.
```
try:
os_name = platform.dist()[0]
except AttributeError:
import distro
os_name = distro.linux_distribution()[0]

```

Now I'm wondering were to report these bug, Is this the right place?

Additional info:
package name : hplip
package version(s) : 1:3.19.11-2
link to upstream : https://developers.hp.com/sites/default/files/hplip-3.19.11-plugin.run

Steps to reproduce:
run hp-setup in the terminal and after some steps you will get this error
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 26 November 2019, 16:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  This was fixed 10 days ago, update your system

Loading...