Closed JohnMSmith closed 2 years ago
Looks like jupyter stdout is set up as text stream for you. Might be a difference between windows and linux. I have not tried it on windows so far. What's your jupyter version?
What's your jupyter version?
Jupyter Notebook 6.4.8
It seems jupyter has changed its behaviour. On linux the problem also exists (sys.stdout.write
only accepts str
), but only on python 3.7 and above. However on linux this doesn't even surface as TypeError because the stream is set up with a fileno that accepts bytes and writes to the terminal, i.e. sys.stdout.write(str)
and os.write(sys.stdout.fileno(), bytes)
do very different things.
I will release a bugfix shortly.
Thanks for reporting.
Should be fixed in version v1.10. Can you confirm @JohnMSmith ?
Yes, it is fixed. Thanks!
I have latest version of cpymad on Win10. Python 3.9.12
Attempt to run mad leads to following output.
How can I solve this?