-
-
Notifications
You must be signed in to change notification settings - Fork 245
AttributeError: 'FakeOutput' object has no attribute 'encoding' #622
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
Comments
Hm, I guess this should just be a property that returns whatever sys.stdout.encoding is, since that's how strings are actually being decoded. What are you using this for? (asking to try to understand if this is the right solution) |
This is a much better solution!
I don't remember that :D |
I found another AttributeError for 'FakeOutput', this time for 'fileno'. I was using PyQtGraph. Issue #628. |
Proposed solution in #629 |
I ran into the problem in bpython import as well. |
Here's my +1:
|
The
|
The
The Z3 example comes from here: https://theory.stanford.edu/~nikolaj/programmingz3.html#sec-logical-interface |
Hello, I confim @alisianoi I have the same issue with python 3.8.5 and bpython 0.19. |
I was trying to use Z3 and is affected by this. sys.stdout.encoding='utf-8' |
Fixes by #629. |
sys.stdout.encoding
gives this error.Also
sys.stdin.encoding
gives'UTF8'
, while python gives'UTF-8'
for both cases.This commit makes bpython work (naturally stdin is still different than in standard python):
The text was updated successfully, but these errors were encountered: