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 2073979 - Missing lib python docevents [rhel-7.9.z]
Summary: Missing lib python docevents [rhel-7.9.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: awscli
Version: 7.9
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: Brandon Perkins
URL:
Whiteboard:
: 2101550 (view as bug list)
Depends On: 2072990
Blocks: 2079442 2079443
TreeView+ depends on / blocked
 
Reported: 2022-04-11 09:29 UTC by olivier.perriot
Modified: 2022-06-28 09:52 UTC (History)
10 users (show)

Fixed In Version: awscli-1.23.2-1.el7_9.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2079442 2079443 (view as bug list)
Environment:
Last Closed: 2022-06-28 09:52:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-118518 0 None None None 2022-04-11 09:33:29 UTC
Red Hat Product Errata RHBA-2022:5228 0 None None None 2022-06-28 09:52:34 UTC

Internal Links: 2072990

Description olivier.perriot 2022-04-11 09:29:18 UTC
Description of problem:


$ aws --version
Traceback (most recent call last):
  File "/usr/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 37, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/lib/python2.7/site-packages/awscli/help.py", line 24, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: cannot import name docevents


So

$ grep -C 1 docevents /usr/lib/python2.7/site-packages/awscli/help.py
sys.path.insert(0, '/usr/lib/fence-agents/bundled')
from botocore.docs.bcdoc import docevents
from botocore.docs.bcdoc.restdoc import ReSTDocument
--
        # to all event handlers.
        docevents.generate_events(self.session, self)
        self.renderer.render(self.doc.getvalue())


$ rpm -qf /usr/lib/fence-agents/bundled
python-s3transfer-0.1.13-1.el7_9.2.noarch

$ rpm -ql python-s3transfer-0.1.13-1.el7_9.2.noarch | grep -E "/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/.*.py$"
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/__init__.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docstringparser.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/restdoc.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/style.py

We have not docevents

But on previous version python-s3transfer-0.1.13-1.el7.0.1.noarch it is ok

$ rpm -ql python-s3transfer-0.1.13-1.el7.0.1.noarch | grep -E "/usr/lib/fence-agents/bundled/botocore/docs/bcdoc.*.py$"
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/__init__.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docstringparser.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/restdoc.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/style.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/textwriter.py


Is is possible to fix this issue ?

Comment 3 Jason Woods 2022-04-19 10:00:42 UTC
The same update caused another issue with urllib3 here: https://bugzilla.redhat.com/show_bug.cgi?id=2073979

Comment 16 Oyvind Albrigtsen 2022-06-28 07:14:12 UTC
*** Bug 2101550 has been marked as a duplicate of this bug. ***

Comment 17 errata-xmlrpc 2022-06-28 09:52:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (awscli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:5228


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