-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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' release 1.15.0 #2596
Comments
Looks like docevents was removed in botocore 1.18.0 boto/botocore@dd24dd1#diff-cebf7e5767458186d20a75e5390de4de |
Upgrading |
Thanks for the quick update, @gregory-lyons! That's correct, we released botocore 1.18.0 today which removed AWS CLI specific doc files. Those were already migrated to the CLI in version 1.18.140 (aws/aws-cli#5538) so the CLI no longer depends on botocore for them. All versions of the CLI released prior to 1.18.141 explicitly require a version of botocore < 1.18.0. It looks like pip doesn't respect this because dependency resolution isn't released yet. When boto3 1.15.0 is installed, pip is uninstalling the required dependencies for the CLI. We're currently evaluating options, but I think the immediate fix is to be updating the CLI in line with boto3. |
Thank you, I will upgrade awscli |
I'm curious how many workflows broke because of this change... |
All our workflows have now broken because of this as well |
aws glue python shell stop working after this update. |
As workaround for AWS Glue is add |
Our prod deploy broke because of this today, it appears. Thanks for opening this! |
All our pipelines were broken as Codebuild images use a CLI < 1.18.140... Solved by forcing an upgrade on awscli |
This broken our codebuild jobs too 😞 |
Broke all my deploys too. Upgrading awscli fixed them. Thanks for the info! |
Can confirm that this change broke workflows all across my company on multiple continents. |
All our workflows have now broken because of this change |
We have the same issue for our CodeBuild projects |
We have the same issue trying to launch Glue Zeppelin Notebook Servers. |
Same issue here, thanks for raising this and lead me to the solution. |
this upgrade broke all our pipelines in all environments. we figured out that this was due to boto3 release and we downgraded boto3 to a stable release . While installing boto3 we used pip install boto3==1.14.62. And this solved the problem . |
same here, some pipelines broken becasue of this. |
The YUM package on Amazon Linux 2 is impacted by this.
|
can someone send commands and instructions to fix this issue for production pipelines? |
@bonudagar it has been shared a few times in this thread, but for anyone else who might have also missed it, you can upgrade your version of pip install --upgrade awscli See this comment for more details #2596 (comment) |
Pretty sure this broke the code pipeline for anyone who uses AWS Landing Zone. The build step pulls a new boto version each time, but also uses the AWS CLI and runs on the aws/codebuild/standard:2.0 image which I'm guessing has an older version of the CLI (have to check for the specifics). Not cool though |
Same issue here as well. It impacted our boostrapping workflow for our eks worker nodes. |
cool, just need to go upgrade a hundred or so repo's on a friday afternoon and a bunch of base images. Who's going to tell my kids they won't see me the rest of the weekend? 😢 |
I see the solution to the issue being posted as:
Our aws pro-services person had us update the BuildSpec in the CI pipeline to:
Just curious why he had me use the --user switch. Would I not want this installed/updated in my system directory, as opposed to the home directory of the buildspec? |
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/12829 If you're going to use alpine, I recommend learning how to update packages. It took literally 2 minutes to create that MR and they are usually merged within a couple hours. |
Our build was successful after explicitly specify the below in the requirements
|
* This change fixes the 'docevents' import error due to an upgrade in botocore. boto/boto3#2596 Co-authored-by: Akash Goel <[email protected]>
* This change fixes the 'docevents' import error due to an upgrade in botocore. boto/boto3#2596
Got this after installing awscli using helped But still seems like it shouldn't have been broken in the first place. |
The yum install python-pip/pip install boto3 sequence wouldn't let me run successfully aws-setup. It turns out that the developers of the boto package did something (described here in detail: boto/boto3#2596) that requires the awscli package to be upgraded via pip.
Still facing the same issue. Current packages |
Since boto/boto3#2596, we can't just pip3 install boto3 on top of it. The image we use comes from this PaaS repository: https://github.com/alphagov/paas-docker-cloudfoundry-tools/blob/main/awscli/Dockerfile which pins awscli to 1.17.2. Also, use curl-ssl from GHCR instead of DockerHub.
Since boto/boto3#2596, we can't just pip3 install boto3 on top of it. The image we use comes from this PaaS repository: https://github.com/alphagov/paas-docker-cloudfoundry-tools/blob/main/awscli/Dockerfile which pins awscli to 1.17.2. This commit uses 1.18.140 which shouldn't have the issue. Also, use curl-ssl from GHCR instead of DockerHub.
Per boto/boto3#2596 (comment) The PaaS might not use this but we've seen it when steal^H^H^H^H^Hre-using the image for OctoDNS.
Per boto/boto3#2596 (comment) The PaaS might not use this but we've seen it when re-using the image for OctoDNS.
Per the last comment here this is now resolved, closing. |
|
this STILL EXISTS and is NOT RESOLVED no matter how many times i try to install various versions of the aws cli directly from the Amazon page for it. |
i don't not what happend, just close my ubuntu 18,and then open it the next day. just so stranged, i closed my computer yesterday normally, and got these err.... |
Describe the bug
aws help command not functioning in release https://github.com/boto/boto3/releases/tag/1.15.0
I am using miniconda3 python runtime environment with the python implementation of AWS CLI. The error originally occurred on our CI pipeline.
Steps to reproduce
Traceback (most recent call last):
File "C:\Users\X\Miniconda3\Scripts\aws.cmd", line 50, in
import awscli.clidriver
File "C:\Users\X\Miniconda3\lib\site-packages\awscli\clidriver.py", line 36, in
from awscli.help import ProviderHelpCommand
File "C:\Users\X\Miniconda3\lib\site-packages\awscli\help.py", line 23, in
from botocore.docs.bcdoc import docevents
ImportError: cannot import name 'docevents'
Expected behavior
aws help is displayed as when boto3 1.14.63 is installed
The text was updated successfully, but these errors were encountered: