Skip to content
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

manage stderr more dynamically, to avoid failures like this that can … #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

artgoldberg
Copy link

…occur when concurrent programs close & reopen stderr

self = <progress.bar.Bar object at 0x7f89ed7b1438>

    def is_tty(self):
>       return self.file.isatty() if self.check_tty else True
E       ValueError: I/O operation on closed file

We have a set of build utilities that won't work with progress without these changes.

Thanks
Arthur

…occur when concurrent programs close & reopen stderr

self = <progress.bar.Bar object at 0x7f89ed7b1438>

    def is_tty(self):
>       return self.file.isatty() if self.check_tty else True
E       ValueError: I/O operation on closed file
@verigak
Copy link
Owner

verigak commented Jul 20, 2020

I'm afraid this will break code that has overriden file to something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants