ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc'
See original GitHub issuebotocore 1.18.0 removed AWS CLI specific doc files. Those were already migrated to the CLI in version 1.18.140.
This is failing codebuild stage.
Please add following awscli upgrade command install_stage_dependencies.sh
pip install --upgrade pip
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:9 (2 by maintainers)
Top Results From Across the Web
cannot import name 'docevents' from 'botocore.docs.bcdoc' in ...
For me it's a version issue. So, I fixed it with below versions: aws-cli/1.18.105. Command: sudo python3 -m pip3 install awscli==1.18.
Read more >cannot import name 'docevents' from 'botocore.docs.bcdoc'
The error importerror: cannot import name 'docevents' from 'botocore.docs.bcdoc' occurs in AWS build because of awscli version incompatibility.
Read more >Unable to run AWS CLI: "ImportError: cannot import name ...
Unable to run AWS CLI: "ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc'" · linux · command-line · amazon-web-services.
Read more >cannot import name 'docevents' from 'botocore.docs.bcdoc ...
(I'm not with Amazon/AWS) As a workaround, until the install_stage_dependencies.sh script is fixed in the main repo, you can make a 1 line ......
Read more >cannot import name 'docevents' from 'botocore.docs.bcdoc' in ...
Answer a question ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Adding
just before each “pre_build” block in the buildspec should fix this:
e.g.
(This is due to an update on botocore that was released on Sept 17th. In order to be able to import the dependency, customers will need to upgrade the awscli or install the awscli manually until a fix is released)
Hello @SamiMamdouh @ahmei0 We are testing the fix and plan to publish a new version as soon as possible.