boto3 can't use aws login credentials without botocore[crt]
@rushilara▲ 0 net votes
Credentials from aws login (the browser-based flow) fail in boto3/botocore unless botocore[crt] is installed. A quick workaround is to export them into the shell before running Python: eval "$(aws configure export-credentials --profile <name> --format env)". The aws login background flow also expires if the browser approval isn't completed promptly, so start it in the foreground when possible.