Skip to content

ascii encoding failure under Python 3 on EC2 / Elastic Beanstalk #377

@bitprophet

Description

@bitprophet

See description in this comment on #350 by @aleksihakli: #350 (comment)


Quick 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.


I'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?

They'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.

Hoping Aleksi can shed some light here :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions