Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 743559 - dev-python/awscli broken with the latest botocore upgrade
Summary: dev-python/awscli broken with the latest botocore upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Piotr Karbowski (RETIRED)
URL: https://github.com/boto/boto3/issues/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-19 11:55 UTC by Eray Aslan
Modified: 2020-09-19 15:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eray Aslan gentoo-dev 2020-09-19 11:55:59 UTC
see $url

basically, botocore update to 1.18.0 broke current awscli:

$ aws --version
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 36, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/lib/python3.7/site-packages/awscli/help.py", line 23, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/usr/lib/python3.7/site-packages/botocore/docs/bcdoc/__init__.py)

a bump to >=dev-python/awscli-1.18.140 is needed.  here is what I used but of course feel free to revize:

# diff awscli-1.18.117.ebuild awscli-1.18.142.ebuild 
6c6
< PYTHON_COMPAT=( python3_{6,7,8} )
---
> PYTHON_COMPAT=( python3_{7,8} )
24c24
<       >=dev-python/botocore-1.16.20[${PYTHON_USEDEP}]
---
>       =dev-python/botocore-1.18.1[${PYTHON_USEDEP}]
27c27
<       dev-python/rsa[${PYTHON_USEDEP}]
---
>       <=dev-python/rsa-4.5.0[${PYTHON_USEDEP}]
Comment 1 Larry the Git Cow gentoo-dev 2020-09-19 15:57:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36f4c1f63a8da0c66b9f2361fd18de6a218373ac

commit 36f4c1f63a8da0c66b9f2361fd18de6a218373ac
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2020-09-19 15:55:44 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2020-09-19 15:57:46 +0000

    dev-python/awscli: version bump
    
    Additionally:
    - Python 3.9 support
    - Lock major.minor version of botocore to avoid interface change
      breaking in future.
    
    Closes: https://bugs.gentoo.org/743559
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 dev-python/awscli/Manifest                                           | 2 +-
 dev-python/awscli/{awscli-1.18.117.ebuild => awscli-1.18.142.ebuild} | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)