{"action":"created","issue":{"url":"https://api.github.com/repos/pyinvoke/invoke/issues/377","repository_url":"https://api.github.com/repos/pyinvoke/invoke","labels_url":"https://api.github.com/repos/pyinvoke/invoke/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/pyinvoke/invoke/issues/377/comments","events_url":"https://api.github.com/repos/pyinvoke/invoke/issues/377/events","html_url":"https://github.com/pyinvoke/invoke/issues/377","id":166476054,"number":377,"title":"ascii encoding failure under Python 3 on EC2 / Elastic Beanstalk","user":{"login":"bitprophet","id":6088,"avatar_url":"https://avatars.githubusercontent.com/u/6088?v=3","gravatar_id":"","url":"https://api.github.com/users/bitprophet","html_url":"https://github.com/bitprophet","followers_url":"https://api.github.com/users/bitprophet/followers","following_url":"https://api.github.com/users/bitprophet/following{/other_user}","gists_url":"https://api.github.com/users/bitprophet/gists{/gist_id}","starred_url":"https://api.github.com/users/bitprophet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitprophet/subscriptions","organizations_url":"https://api.github.com/users/bitprophet/orgs","repos_url":"https://api.github.com/users/bitprophet/repos","events_url":"https://api.github.com/users/bitprophet/events{/privacy}","received_events_url":"https://api.github.com/users/bitprophet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinvoke/invoke/labels/Bug","name":"Bug","color":"a04040"},{"url":"https://api.github.com/repos/pyinvoke/invoke/labels/Needs%20investigation","name":"Needs investigation","color":"fef2c0"},{"url":"https://api.github.com/repos/pyinvoke/invoke/labels/run()","name":"run()","color":"444444"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-20T01:39:24Z","updated_at":"2016-08-08T18:24:39Z","closed_at":null,"body":"See description in this comment on #350 by @aleksihakli: https://github.com/pyinvoke/invoke/issues/350#issuecomment-232641766\r\n\r\n----\r\n\r\nQuick note: `hide=True` just skips the automatic mirroring to stdout/err; presumably if one manually were to try printing or decoding `run(...).stdout` it'd explode there too.\r\n\r\n----\r\n\r\nI'm wondering why this is breaking for @aleksihakli; is their environment a normal-ish EC2 instance with a human user at a terminal? Or is Elastic Beanstalk executing it in a more limited environment?\r\n\r\nThey're on Python 3.4, so Invoke isn't manually encoding the string, it's assuming Python 3's `io` writer classes are doing the correct thing. My best guess is that in this case something is triggering use of a writer class that does *not* do the correct thing; or that the outer environment has properties we haven't encountered yet.\r\n\r\nHoping Aleksi can shed some light here :)"},"comment":{"url":"https://api.github.com/repos/pyinvoke/invoke/issues/comments/238330407","html_url":"https://github.com/pyinvoke/invoke/issues/377#issuecomment-238330407","issue_url":"https://api.github.com/repos/pyinvoke/invoke/issues/377","id":238330407,"user":{"login":"bitprophet","id":6088,"avatar_url":"https://avatars.githubusercontent.com/u/6088?v=3","gravatar_id":"","url":"https://api.github.com/users/bitprophet","html_url":"https://github.com/bitprophet","followers_url":"https://api.github.com/users/bitprophet/followers","following_url":"https://api.github.com/users/bitprophet/following{/other_user}","gists_url":"https://api.github.com/users/bitprophet/gists{/gist_id}","starred_url":"https://api.github.com/users/bitprophet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitprophet/subscriptions","organizations_url":"https://api.github.com/users/bitprophet/orgs","repos_url":"https://api.github.com/users/bitprophet/repos","events_url":"https://api.github.com/users/bitprophet/events{/privacy}","received_events_url":"https://api.github.com/users/bitprophet/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T18:24:39Z","updated_at":"2016-08-08T18:24:39Z","body":"OK, so another mark under \"probably something specific to noninteractive use\". Thanks for setting up the repro case, I'll try to use that when I look next!"}}
{"actor":{"display_login":"bitprophet"}}