aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.46k stars 4.1k forks source link

cannot import name 'SSOTokenFetcher' from 'botocore.utils' (C:\Python\Python310\lib\site-packages\botocore\utils.py) #8692

Closed vbtang closed 3 months ago

vbtang commented 4 months ago

Describe the bug

After I install awscli2v2 according to https://github.com/aws/aws-cli/tree/v2 I got error when I run awscli v2 through awslocal

cannot import name 'SSOTokenFetcher' from 'botocore.utils' (C:\Python\Python310\lib\site-packages\botocore\utils.py)

the awslocal is a wrapper of awscli It seems I don't have a correct version of botocore and boto3, what's the corresponding botocore and boto3 for it?

Expected Behavior

awscli2v2 works well

Current Behavior

I got error when I run awscli v2 through awslocal

cannot import name 'SSOTokenFetcher' from 'botocore.utils' (C:\Python\Python310\lib\site-packages\botocore\utils.py)

Reproduction Steps

install awscli v2 from https://github.com/aws/aws-cli/tree/v2 with botocore-1.34.112 and boto3 installed

Possible Solution

No response

Additional Information/Context

No response

CLI version used

v2

Environment details (OS name and version, etc.)

windows10 python3.10.11

tim-finnigan commented 3 months ago

Thanks for reaching out. Please use one of the installation methods documented here: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html. We cannot guarantee support for alternative installation steps. The latest CLI version is 2.16.1, and installing the CLI will automatically install the corresponding compatible version of Botocore.