1 | initial version |
I agree with the comments that it looks like a bug in SageTeX. I opened https://trac.sagemath.org/ticket/27598.
In the file /SageMath/local/lib/python2.7/site-packages/sagetex.py, try replacing the line "m.update(bytearray(line,'utf8'))" with "m.update(line)". Does that fix it?
(In general this is probably not the right thing to do. I think it will work with Python 2 but not Python 3, but if your Sage is built with Python 2, the default, it could work.)