-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BUG] rich.print("[bright_blue uu]" + message) crashes with NotImplementedError #2645
Labels
Comments
I think the code should also ignore NotImplementedError as well: except (ValueError, io.UnsupportedOperation, NotImplementedError):
pass Changing the |
That would certainly fix it, although |
I hope we solved your problem. If you like using Rich, you might also enjoy Textual |
This was referenced Jan 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm trying to do a print statement on Windows environment using
rich
and I get an exception.Provide a minimal code example that demonstrates the issue if you can. If the issue is visual in nature, consider posting a screenshot.
Windows 10 x64
Faust streaming application.
I'm using the terminal emulated by PyCharm.
From what I can tell the error is in console.py, around here:
The error doesn't appear in the main application, it appears in a library that uses
rich
.If I write the same console message from my main application, before the library does it then it works ok.
But if the library wants to write the message it fails with the exception mentioned above.
The text was updated successfully, but these errors were encountered: