Skip to content
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

CLI doesn't work on windows with unicode profile names #2366

Closed
soukicz opened this issue Jan 6, 2017 · 4 comments
Closed

CLI doesn't work on windows with unicode profile names #2366

soukicz opened this issue Jan 6, 2017 · 4 comments
Labels
bug This issue is a bug.

Comments

@soukicz
Copy link

soukicz commented Jan 6, 2017

Hello,
CLI is using credentials from home directory but it doesn't work if this directory has unicode characters:

C:\Users\René Winkler>aws --version
Traceback (most recent call last):
File "aws", line 27, in <module>
File "aws", line 23, in main
File "awscli\clidriver.pyc", line 49, in main
File "awscli\clidriver.pyc", line 57, in create_clidriver
File "botocore\session.pyc", line 368, in full_config
File "botocore\configloader.pyc", line 105, in load_config
File "botocore\configloader.pyc", line 126, in raw_config_parse
File "botocore\exceptions.pyc", line 27, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 12:   ordinal not in range(128)

https://stackoverflow.com/questions/37904689/unicodedecodeerror-when-calling-aws-cli

@dstufft
Copy link
Contributor

dstufft commented Jan 9, 2017

Are you able to see what version of botocore you have installed? If you've installed using pip then you should be able to see that information using pip list. I believe that this should have been fixed by boto/botocore#861 so if you have a version older than 1.4.9 then upgrading should solve it. If you have a version of botocore >= 1.4.9 then it must be another issue.

@dstufft dstufft added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jan 9, 2017
@soukicz
Copy link
Author

soukicz commented Jan 10, 2017

It was installed from MSI package (https://s3.amazonaws.com/aws-cli/AWSCLI64.msi). I will try to uninstall and install it from pip.

@vparmeland
Copy link

Same issue on Windows Server 2012 R2 with AWSCLI x64 (https://s3.amazonaws.com/aws-cli/AWSCLI64.msi).

aws-cli/1.11.35 Python/2.7.9 Windows/2012Server botocore/1.4.92

Traceback (most recent call last):
File "aws", line 27, in
File "aws", line 23, in main
File "awscli\clidriver.pyc", line 54, in main
File "awscli\clidriver.pyc", line 223, in main
UnicodeEncodeError: 'ascii' codec can't encode character u'\xde' in position 58: ordinal not in range(128)

image

But AWS CLI work perfectly with unicode characters

@dstufft dstufft added bug This issue is a bug. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Apr 3, 2017
@dstufft
Copy link
Contributor

dstufft commented Apr 11, 2017

I believe this should be fixed now with #2374.

@dstufft dstufft closed this as completed Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants