title: ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' in AWS CodeBuild
body: <p><strong>ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc'<br />
  (/python3.7/site-packages/botocore/docs/bcdoc/<strong>init</strong>.py)</strong></p>
  <pre><code>Traceback (most recent call last):
    File &quot;/root/.pyenv/versions/3.7.6/bin/aws&quot;, line 19, in &lt;module&gt;
      import awscli.clidriver
  
    File &quot;/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/awscli/clidriver.py&quot;, line 36, in &lt;module&gt;
      from awscli.help import ProviderHelpCommand
  
    File &quot;/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/awscli/help.py&quot;, line 23, in &lt;module&gt;
      from botocore.docs.bcdoc import docevents
  
  ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/botocore/docs/bcdoc/__init__.py)
  
  [Container] 2020/10/29 16:48:39 Command did not exit successfully aws --version exit status 1
  </code></pre>
  <p>The failure occurs in the <strong>PRE_BUILD</strong>.</p>
  <p>And this is my spec build file: <strong>buildspec-cd.yml</strong></p>
  <pre><code>pre_build:
      commands:
        - AWS_REGION=${AWS_DEFAULT_REGION}
        - COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
        - IMAGE_VERSION=${COMMIT_HASH}
        - REPOSITORY_URI=${CONTAINER_REGISTRY}/${APPLICATION_NAME}
        - aws --version
        - echo Logging in to Amazon ECR...
        - $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
  </code></pre>
  <p>The codebuild was working correctly and nothing has been changed.
  Only stopped working.</p>