Cannot run ctx.run with pty=True on Alpine Linux (musl) #488
I'm trying to run invoke in a docker container with the official
Running the same task on the debian based image of python 2.7.13 doesn't cause the problem.
Steps to reproduce.
create a dummy tasks.py
run the docker container (fails)
If pty is disabled, it works.
If used the debian based image, it works regardless.
My guess is that musl compiled python returns different exception string than the gcc one and doesn't get trapped here: https://github.com/pyinvoke/invoke/blob/master/invoke/runners.py#L918-L920
The text was updated successfully, but these errors were encountered:
While I haven't actually reproduced the issue on Alpine itself, @rajiteh is right that this seems to be an issue with the unfortunate string test around IO related OSErrors. (Sob. Y U no additional subclasses, Python?)
I've just pushed a test & patch to master and it'll go out next bugfix. Thanks!