Bug 1745334 - [abrt] hplip: get_distro_name(): password.py:81:get_distro_name:AttributeError: module 'platform' has no attribute 'dist'
Summary: [abrt] hplip: get_distro_name(): password.py:81:get_distro_name:AttributeErro...
Keywords:
Status: CLOSED DUPLICATE of bug 1745317
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a4826f402ac84d41f859485e692...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-25 13:04 UTC by Mikhail
Modified: 2019-09-06 10:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-06 10:31:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.05 KB, text/plain)
2019-08-25 13:04 UTC, Mikhail
no flags Details
File: cpuinfo (2.29 KB, text/plain)
2019-08-25 13:04 UTC, Mikhail
no flags Details
File: environ (5.48 KB, text/plain)
2019-08-25 13:04 UTC, Mikhail
no flags Details
File: mountinfo (2.59 KB, text/plain)
2019-08-25 13:04 UTC, Mikhail
no flags Details
File: namespaces (129 bytes, text/plain)
2019-08-25 13:04 UTC, Mikhail
no flags Details
File: open_fds (2.22 KB, text/plain)
2019-08-25 13:04 UTC, Mikhail
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.