Bug 2074578 - unable to use awscli after the new python-s3transfer update to python-s3transfer-0.1.13-1.el7_9.2.noarch
Summary: unable to use awscli after the new python-s3transfer update to python-s3trans...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-s3transfer
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-12 14:31 UTC by farrotin
Modified: 2022-05-23 12:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-118662 0 None None None 2022-04-12 14:43:48 UTC

Description farrotin 2022-04-12 14:31:06 UTC
Description of problem:

Machine updated and new python-s3transfer-0.1.13-1.el7_9.2.noarch installed
awscli just crashes (awscli-1.14.28-5.el7_5.1.noarch)

Version-Release number of selected component (if applicable):

awscli-1.14.28-5.el7_5.1.noarch
python-s3transfer-0.1.13-1.el7_9.2.noarch

How reproducible:


Steps to Reproduce:
1. yum update
2. call awscli
3. python traceback


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

Downgrading to previous version restores awscli functionality : 

yum downgrade python-s3transfer

Resolving Dependencies
--> Running transaction check
---> Package python-s3transfer.noarch 0:0.1.13-1.el7.0.1 will be a downgrade
---> Package python-s3transfer.noarch 0:0.1.13-1.el7_9.2 will be erased
--> Finished Dependency Resolution

Comment 3 Gordon Dexter 2022-05-05 18:28:22 UTC
I can confirm this bug.

The issue seems to be the absence of the docevents files in the upgraded package.  On a broken host, rpm -ql python-s3transfer | grep docevent returns nothing, whereas on a non-broken host it returns:
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.pyc
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.pyo


Downgrading as above fixes the issue.


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