aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

v2 install as pip package on git bash

Open lmayorga1980 opened this issue 5 years ago • 7 comments

I have installed awscliv2 using the MSI for Windows.

aws --version
aws-cli/2.1.27 Python/3.7.9 Windows/10 exe/AMD64 prompt/off

When I run it from git bash I get the following message.

$ aws configure sso

Found xterm, while expecting a Windows console. Maybe try to run this program using "winpty" or run it in cmd.exe instead. Or otherwise, in case of Cygwin, use the Python executable that is compiled for Cygwin.

lmayorga1980 avatar Mar 01 '21 21:03 lmayorga1980

Hi @lmayorga1980,

Thanks for writing in! I'm unable to reproduce on git bash using the same configuration with cmd.exe— this appears to be more of a compatibility issue between xterm and git bash. Have you tried running it using winpty or in cmd.exe with any success?

stobrien89 avatar Mar 03 '21 00:03 stobrien89

I will try the winpty option and get back here.

lmayorga1980 avatar Mar 03 '21 17:03 lmayorga1980

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.

github-actions[bot] avatar Mar 10 '21 18:03 github-actions[bot]

I have the same issue. Is there any solution for this?

bharti8085 avatar Jul 13 '22 13:07 bharti8085

I ran into the same issue. Is there any solution for this?

anashakt avatar May 22 '23 16:05 anashakt

Ran into same issue. Using cmd is not an option. Issue is urgent, and I cannot be expected to learn a whole new command scheme to fix the problem. I'm forced to use dangerous methods to accomplish the same task. (manually pasting short term credentials with long running task). This should not happen. This worked for me last week. What would cause this to suddenly stop working?

JaiRaeWiz-DOL avatar Mar 12 '24 19:03 JaiRaeWiz-DOL

@stobrien89 I have the same issue too. try winpty then resolved. thank you.

Windows 11 Pro GitBash(git version 2.39.2.windows.1)

$ aws --version
aws-cli/2.16.6 Python/3.11.8 Windows/10 exe/AMD64
$ winpty aws configure sso

Iovesophy avatar Jun 12 '24 03:06 Iovesophy