Bug 1631785

Summary: [abrt] policycoreutils-python-utils: module(): __init__.py:24:<module>:AttributeError: module 'pkg_resources' has no attribute 'get_distribution'
Product: [Fedora] Fedora Reporter: yuhan <yuhanluo1994>
Component: python-pipAssignee: Tomas Orsava <torsava>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: bkabrda, dwalsh, metherid, mgrepl, ncoghlan, plautrba, pviktori, tflink, TicoTimo, torsava, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c15250f3f8c74f68d1b32985c87be811597db981
Whiteboard: abrt_hash:296380b929456e42d359b25205a434b064ff04f1;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-24 12:19:14 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: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description yuhan 2018-09-21 14:50:42 UTC
Version-Release number of selected component:
policycoreutils-python-utils-2.8-1.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 -Es /sbin/semanage fcontext -a -t bin_t /usr/lib/chromium-browser
crash_function: module
exception_type: AttributeError
executable:     /sbin/semanage
interpreter:    python3-3.6.6-1.fc28.x86_64
kernel:         4.18.7-200.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
#1 <module> in /usr/lib64/python3.6/site-packages/setools/__init__.py:24
#2 <module> in /usr/lib/python3.6/site-packages/sepolicy/__init__.py:9
#3 <module> in /usr/lib/python3.6/site-packages/seobject.py:34
#4 <module> in /sbin/semanage:28

Comment 1 yuhan 2018-09-21 14:50:48 UTC
Created attachment 1485625 [details]
File: backtrace

Comment 2 yuhan 2018-09-21 14:50:50 UTC
Created attachment 1485626 [details]
File: cgroup

Comment 3 yuhan 2018-09-21 14:50:51 UTC
Created attachment 1485627 [details]
File: cpuinfo

Comment 4 yuhan 2018-09-21 14:50:53 UTC
Created attachment 1485629 [details]
File: environ

Comment 5 yuhan 2018-09-21 14:50:54 UTC
Created attachment 1485630 [details]
File: mountinfo

Comment 6 yuhan 2018-09-21 14:50:55 UTC
Created attachment 1485631 [details]
File: namespaces

Comment 7 yuhan 2018-09-21 14:50:57 UTC
Created attachment 1485632 [details]
File: open_fds

Comment 8 Petr Lautrbach 2018-09-21 15:35:49 UTC
  File "/usr/lib64/python3.6/site-packages/setools/__init__.py", line 24, in <module>
    __version__ = pkg_resources.get_distribution("setools").version
AttributeError: module 'pkg_resources' has no attribute 'get_distribution'

Do you use pip? Please see https://bugzilla.redhat.com/show_bug.cgi?id=1550368#c21 and later

Comment 9 Petr Viktorin (pviktori) 2018-09-24 12:19:14 UTC

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