Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1653255

Summary: [abrt] [faf] subscription-manager: resolve(): /usr/lib/python3.6/site-packages/pkg_resources/__init__.py killed by pkg_resources.DistributionNotFound
Product: Red Hat Enterprise Linux 8 Reporter: Steeve Goveas <sgoveas>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: csnyder, jsefler, ktordeur
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/e02d26271667e1325f71f50551f75e0aebbb0841/
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-10 15:45:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steeve Goveas 2018-11-26 11:43:35 UTC
This bug has been created based on an anonymous crash report requested by the package maintainer.

Report URL: http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/e02d26271667e1325f71f50551f75e0aebbb0841/

Full Backtrace:
__init__.py:774:resolve:pkg_resources.DistributionNotFound: The 'dbus-python' distribution was not found and is required by subscription-manager

Traceback (most recent call last):
 File "/usr/libexec/rhsmd", line 6, in <module>
   from pkg_resources import load_entry_point
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>
   @_call_aside
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
   f(*args, **kwargs)
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
   working_set = WorkingSet._build_master()
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master
   ws.require(__requires__)
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require
   needed = self.resolve(parse_requirements(requirements))
 File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve
   raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'dbus-python' distribution was not found and is required by subscription-manager

Local variables in innermost frame:
new_requirement: Requirement.parse('six')
new_requirements: [Requirement.parse('dbus-python'), Requirement.parse('ethtool'), Requirement.parse('python-dateutil'), Requirement.parse('iniparse'), Requirement.parse('six')]
requirers: {'subscription-manager'}
ws: <pkg_resources.WorkingSet object at 0x7f2b16c6a278>
dist: None
req: Requirement.parse('dbus-python')
required_by: defaultdict(<class 'set'>, {Requirement.parse('dbus-python'): {'subscription-manager'}, Requirement.parse('ethtool'): {'subscription-manager'}, Requirement.parse('python-dateutil'): {'subscription-manager'}, Requirement.parse('iniparse'): {'subscription-manager'}, Requirement.parse('six'): {'subscription-manager'}})
req_extras: {Requirement.parse('dbus-python'): (), Requirement.parse('ethtool'): (), Requirement.parse('python-dateutil'): (), Requirement.parse('iniparse'): (), Requirement.parse('six'): ()}
to_activate: [subscription-manager 1.23.8 (/usr/lib64/python3.6/site-packages)]
best: {'dbus-python': None}
processed: {Requirement.parse('subscription-manager==1.23.8'): True}
extras: None
replace_conflicting: False
installer: None
env: <pkg_resources.Environment object at 0x7f2b16c6a358>
requirements: [Requirement.parse('ethtool'), Requirement.parse('python-dateutil'), Requirement.parse('iniparse'), Requirement.parse('six')]
self: <pkg_resources.WorkingSet object at 0x7f2b16c6a278>

Additional information:
environ:
:START_HOURS_RANGE=3
:MAILTO=root
:_=/usr/libexec/rhsmd
:LANG=en_US.UTF-8
:USER=root
:PWD=/
:HOME=/root
:SHELL=/bin/sh
:RANDOM_DELAY=45
:SHLVL=6
:LOGNAME=root
:PATH=/sbin:/bin:/usr/sbin:/usr/bin

Comment 2 Chris Snyder 2018-12-10 15:45:35 UTC

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