-
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
Unable to start AWS CLI with Unicode locale #945
Comments
+1 For any chefs out there, that recipe saved me: script "awscli_fix" do |
Marking as a bug for now. I think this will depend on whether or not "UTF-8" is a valid value for LC_CTYPE. If it is, then this is something we should support. However, if UTF-8 is not a valid value then I think we should just require that people have correct values for LC_CTYPE. However, I think a better error message would help. I'm on a mac, and the |
Dunno if this helps but I added this to my
Output of
Also on a Mac. |
Was able to find more information on this. Seems to be a bug in python. We'll need to figure out what, if anything, we can do to workaround this issue: http://bugs.python.org/issue18378 |
So after looking into the bug I've linked above as well as the traceback in the initial post, this happens literally on the first line of code in Thoughts? cc @kyleknap @danielgtaylor |
I think using the way you proposed with an if statement should work fine. I was also thinking we do a try, except for Also how do you propose to change the |
If it was a more specific exception I think the try/except would be ok, but I think
Exactly that. Check and change before importing it:
The python bug report suggests possibly only doing this check for Mac OS X but I'm not sure that's necessary. |
That's how I would do it too. I think that should be safe. I am not sure if it will affect calls like |
For more information see: * http://bugs.python.org/issue18378 * aws#945
Fixed via #1121 |
`aws` command had the same problem and was already fixed in aws#945.
When I unset the LC_CTYPE, it works:
Other Python apps work fine with this LC_CTYPE (checked
hg
andansible
running on the same Python on the same host).I believe, this LC_CTYPE variable is set by MacOS, I didn't set it manually.
The text was updated successfully, but these errors were encountered: