Descriptionolivier.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 ?
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
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 ?