You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: I didn't see that poetry uses cleo 0.6.8, and the current version is 0.7.2, so I'm not sure yet if the problem still exists in the current version.
# in cleo/outputs/stream_output.py
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
The process writing to the pipe will now be terminated when it receives SIGPIPE (i.e. when the other end of the pipe is closed prematurely), rather than raising a BrokenPipeError.
I would be more than willing to put together a PR for this since it's very little code.
Facing the same issue while doing the same thing. @zmitchell did you ever figure out a solution that doesn't require editing the source?
EDIT: Found the env command for poetry, which gives the virtualenv path - poetry env info -p. This solves my problem for now, but it would still be nice to see this issue resolved.
Discovered this trying to work around python-poetry/poetry#106 doing something along the lines of
poetry show -v | head -n1 | ..
.Using the
GreetCommand
given in the README:The text was updated successfully, but these errors were encountered: