-
Notifications
You must be signed in to change notification settings - Fork 73
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
ValueError: I/O operation on closed file #146
Comments
I'm curious what line number / source code this ValueError raised from? I've been going back & forth on 2 things at this line number, that is maybe relevant: https://github.com/jquast/blessed/blob/master/blessed/terminal.py#L185
The previous version is just like blessings was,
which you're welcome to try to see if it makes any difference |
I've been seeing this at the end of pytest, I don't know if its similar or not, its just a side-effect I guess,
which goes away if I revert to the previous |
Here is the stack trace, hopefully that helps.
|
Ah, well, in this case, stdin has some strange issue, we can safely ignore it with the understanding that |
So catch the exception and ignore... I'm happy to contribute, should I try to put together a PR for you? |
I'm already done and rolling to pypi, #147 |
- move "styles" section from colors.rst to terminal.rst - add term.link("https://example.com", "example.com") hyperlink support - add bin/cnn.py news example - revert this setupterm() experiment #59, discussed in #146 - ignore ValueError for multiprocessing environments #146
@jquast , We probably want to append the exception to errors rather than just pass. That way we have some history when it's not working unexpectedly. |
I'm afraid you're too late, you'll have to prepare it for the next release, the |
you're welcome to try from pypi @joshuasiler |
Updated and it now works. Thanks! |
I have a multiprocess system that I'm trying to move from Blessings to Blessed. Currently, the code calls
term = Terminal()
in the main process, and then again in each forked process allowing everyone to write to the screen.When I changed the import to Blessed, the system now fails on
term = Terminal()
in the forked processes with the following error:ValueError: I/O operation on closed file
Any idea why there's a difference in operation?
The text was updated successfully, but these errors were encountered: