-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ModuleNotFoundError: No module named 'botocore' | Windows | AWS CLI #6394
Comments
|
Hi @akshaykhc, thanks for reaching out. Have you tried following these AWS CLI installation instructions for Windows? https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html Please try following the steps there and let us know if you run into any issues. |
Hello Tim, thank you for looking into this issue. I tried following the above-provided documentation. However, now I am getting the following error: aws --version resulted in |
Just an FYI, I was told to use aws cli 1.16.14 for snowball: https://docs.aws.amazon.com/snowball/latest/developer-guide/using-adapter.html#cli-version |
Hi @akshaykhc, thanks for following up. It looks like you have an incompatible version of botocore. You should uninstall botocore and the AWS CLI, and reinstall v1.16.14 using the MSI installer following the steps here: https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html#msi-on-windows For more context on botocore comptability, please refer to this comment: boto/boto3#2596 (comment)
We will work to improve the install guide to account for exceptions such as these. Thanks for bringing this to our attention! Please let us know if you run into any other issues. |
Hello Tim, thank you! Incompatible version? Ok. Could you confirm the command to check the current botocore version and the command to uninstall it? |
Hi @akshaykhc, I would suggest trying |
Thank you Tim. I will go through it and let you know the results. |
So the msi installer has aws cli 1.20.42 and snowball needs 1.16.14 |
Hi @akshaykhc, to install that specific version using the MSI please try this URL: https://s3.amazonaws.com/aws-cli/AWSCLI64-1.16.14.msi as recommended in this comment #1921 (comment). Apologies for not clarifying that earlier. |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Confirm by changing [ ] to [x] below:
Issue is about usage on:
Platform/OS/Hardware/Device
What are you running the cli on? Windows
Describe the question
When attempting to execute the "aws --version" command, I am getting the following error: ModuleNotFoundError: No module named 'botocore'
C:\Users\Administrator>aws --version
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\aws.cmd", line 50, in
import awscli.clidriver
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\awscli-1.16.14-py3.9.egg\awscli
clidriver.py", line 17, in
import botocore.session
ModuleNotFoundError: No module named 'botocore'
Please help!
The text was updated successfully, but these errors were encountered: