-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' #34
Comments
This fixes aws-solutions#34
I'm facing same error |
Hello @SamiMamdouh @ahmei0 |
We're experiencing the same issue. Great to know a fix is in the works to solve this. |
(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 change to the buildspec to fix this. The fix is based on the PR that ahmei0 posted above, not my work. The PR is to fix the install_stage_dependencies.sh script that we can't easily modify in our environment though. This workaround changes the buildspec which we do have control over while we wait for the real fix.
I can't afford downtime for our CT customization pipeline, so I needed to find a workaround. |
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. |
I modified the CfCT template for the BuildSpecs: StackSetCodeBuild Add "\n - pip install --upgrade awscli\n - aws --version" to lines 517, 641 and 811. Do it right after "- apt-get update && apt-get upgrade -y". Then Update the CfCT stack. |
Can you please close this ticket if v1.2.1 resolves this issue. |
This issue has been resolved in https://github.com/aws/aws-cli/releases/tag/1.18.140. See: |
Issue resolved in release v1.2.1 |
botocore 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
https://github.com/awslabs/aws-control-tower-customizations/blob/master/source/bin/codebuild_scripts/install_stage_dependencies.sh
The text was updated successfully, but these errors were encountered: