Bug 1729063 - [setroubleshoot] AttributeError: module 'pkg_resources' has no attribute 'get_distribution'
Summary: [setroubleshoot] AttributeError: module 'pkg_resources' has no attribute 'get...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-pip
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Python Maintainers
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-11 10:32 UTC by guazhang@redhat.com
Modified: 2019-10-23 06:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-30 13:16:10 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description guazhang@redhat.com 2019-07-11 10:32:30 UTC
Description of problem:
abrt-cli check found the error what AttributeError: module 'pkg_resources' has no attribute 'get_distribution', please have a look

Version-Release number of selected component (if applicable):
setroubleshoot-server-3.3.19-2.el8.x86_64
RHEL-8.1.0-20190701.0 

How reproducible:
always


# /usr/sbin/setroubleshootd
Traceback (most recent call last):
  File "/usr/sbin/setroubleshootd", line 35, in <module>
    from setroubleshoot.util import log_debug
  File "/usr/lib/python3.6/site-packages/setroubleshoot/util.py", line 357, in <module>
    from sepolicy import get_all_file_types
  File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 7, in <module>
    import setools
  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'



Running: 'abrt-cli list'...
id 0afc6825a1065abd1b4076d71d9c540cdd4870df
reason:         module(): __init__.py:24:<module>:AttributeError: module 'pkg_resources' has no attribute 'get_distribution'
time:           Wed 10 Jul 2019 11:26:52 PM EDT
cmdline:        /usr/libexec/platform-python -Es /usr/sbin/setroubleshootd -f ''
package:        setroubleshoot-server-3.3.19-2.el8
uid:            993 (setroubleshoot)
count:          1
Directory:      /var/spool/abrt/Python3-2019-07-10-23:26:52-4106



# pip list 
Package              Version     
-------------------- ------------
asn1crypto           0.24.0      
cffi                 1.11.5      
configobj            5.0.6       
cryptography         2.3         
dbus-python          1.2.4       
decorator            4.2.1       
distro               1.4.0       
ethtool              0.14        
fmf                  0.6.1       
future               0.17.1      
gpg                  1.10.0      
idna                 2.5         
iniparse             0.4         
iotop                0.6         
ipaddress            1.0.22      
libsan               0.3.0       
netifaces            0.10.6      
pciutils             2.3.6       
perf                 0.1         
pexpect              4.7.0       
pip                  19.1.1      
ply                  3.9         
ptyprocess           0.6.0       
pycairo              1.16.3      
pycparser            2.14        
pygobject            3.28.3      
pyinotify            0.9.6       
pyOpenSSL            18.0.0      
pyparsing            2.1.10      
python-augeas        0.5.0       
python-dateutil      2.6.1       
python-dmidecode     3.12.2      
python-linux-procfs  0.6         
pyudev               0.21.0      
PyYAML               5.1.1       
rhnlib               2.8.6       
rpm                  4.14.2      
schedutils           0.6         
sepolicy             1.1         
setools              4.2.1       
setroubleshoot       1.1         
setuptools           41.0.1      
six                  1.11.0      
slip                 0.6.4       
slip.dbus            0.6.4       
sos                  3.7         
ssh2-python          0.18.0.post1
stqe                 0.1.3       
subscription-manager 1.25.11     
syspurpose           1.25.11     
systemd-python       234         
wheel                0.33.4    


platform-python-3.6.8-11.el8.x86_64

Comment 2 Miro Hrončok 2019-07-15 10:47:19 UTC
Have you ever used sudo pip?

Comment 3 Charalampos Stratakis 2019-07-30 13:16:10 UTC
Closing this. Please reopen if you have more information.

Comment 4 guazhang@redhat.com 2019-10-23 06:58:29 UTC
clean the needinfo


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