Closed cjh1 closed 2 years ago
@cjh1 Did you find a solution for this issue?
Edit: Nvm. Looks like latest pillow fixes it (>9.0.1).
@FR4NKESTI3N
I did the following:
stdout = sys.stdout
sys.stdout = sys.__stdout__
plt.imsave(str(path), img)
sys.stdout = stdout
Basically resetting sys.stdout, pretty hacky, good to know this is now resolved with > 9.0.1 I will have to give it a try ...
Checklist
master
branch of Faust.Steps to reproduce
Use matplotlib/Pillow inside faust, something like:
Expected behavior
Writes out the image.
Actual behavior
A
NotImplementedError
is throw from themode
package. It appears thatsys.stdout
is being set to an instance of FileLogProxy andPillow
is doing a comparison withsys.stdout.buffer
here andFileLogProxy
doesn't implement this property. Not sure where a fix should be applied.Full traceback
Versions