sympy-live
sympy-live copied to clipboard
Unicode Exception thrown in SymPy Live
After copy&pasting the following lines from this stackexchange question
from sympy import *
x = Symbol("x")
pprint(Integral(sqrt(1/x), x))
the following exception is thrown:
Exception in SymPy Live of type
<type 'exceptions.UnicodeEncodeError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/s~sympy-live-hrd/43.373169527249054993/shell.py", line 763, in post
live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s~sympy-live-hrd/43.373169527249054993/shell.py", line 380, in evaluate
exec code in statement_module.__dict__
File "<string>", line 1, in <module>
File "/base/data/home/apps/s~sympy-live-hrd/43.373169527249054993/sympy/sympy/printing/pretty/pretty.py", line 1825, in pretty_print
print(pretty(expr, **settings))
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/request_environment.py", line 93, in write
self._request.errors.write(data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2320' in position 0: ordinal not in range(128)
On first entry of the above lines, the output is an "ugly" ascii version of the integral, similar as in the stackexchange question. When using the arrow key to re-enter the same line again, or entering anything else, the above exception is thrown.