Bug 1745334

Summary: [abrt] hplip: get_distro_name(): password.py:81:get_distro_name:AttributeError: module 'platform' has no attribute 'dist'
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jridky, tkorbar, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/ac6beaa68117850a41f618616e3815614d7f5057
Whiteboard: abrt_hash:a4826f402ac84d41f859485e692132c36b0d2de5;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-06 10:31:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Mikhail 2019-08-25 13:04:44 UTC
Description of problem:
Install newHP printer on Rawhide

Version-Release number of selected component:
hplip-3.19.6-6.fc32

Additional info:
reporter:       libreport-2.10.1
cgroup:         0::/user.slice/user-1000.slice/user/gnome-terminal-server.service
cmdline:        /usr/bin/python3 /usr/bin/hp-plugin -u --required --reason 65
crash_function: get_distro_name
exception_type: AttributeError
executable:     /usr/bin/hp-plugin
interpreter:    python3-3.8.0~b3-4.fc32.x86_64
kernel:         5.3.0-0.rc5.git1.1.fc32.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
password.py:81:get_distro_name:AttributeError: module 'platform' has no attribute 'dist'

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/plugindialog.py", line 248, in NextButton_clicked
    status, download_plugin_file, error_str = self.pluginObj.download(self.plugin_path,self.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 113, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 135, in __readAuthType
    distro_name = get_distro_name().lower()
  File "/usr/share/hplip/base/password.py", line 81, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

Local variables in innermost frame:
os_name: None
platform: <module 'platform' from '/usr/lib64/python3.8/platform.py'>

Comment 1 Mikhail 2019-08-25 13:04:47 UTC
Created attachment 1607833 [details]
File: backtrace

Comment 2 Mikhail 2019-08-25 13:04:48 UTC
Created attachment 1607834 [details]
File: cpuinfo

Comment 3 Mikhail 2019-08-25 13:04:50 UTC
Created attachment 1607835 [details]
File: environ

Comment 4 Mikhail 2019-08-25 13:04:51 UTC
Created attachment 1607836 [details]
File: mountinfo

Comment 5 Mikhail 2019-08-25 13:04:53 UTC
Created attachment 1607837 [details]
File: namespaces

Comment 6 Mikhail 2019-08-25 13:04:54 UTC
Created attachment 1607838 [details]
File: open_fds

Comment 7 Zdenek Dohnal 2019-09-06 10:31:11 UTC
Hi Mikhail,

thank you for reporting the issue!

It is actually reported as #1745317, so I'll close the issue as duplicate.

*** This bug has been marked as a duplicate of bug 1745317 ***