Hi, When trying to use SymPy with code that is ran under mod_wsgi starting up such a process crashes due encoding method detection, which uses sys.stdout, when trying to determine unicode capabilities.
mod_wsgi reserves sys.stdout for any access and thus code fails. I created issue https://github.com/sympy/sympy/issues/9086 on issue tracker but I'll post it here as well: When using sympy with mod_wsgi pretty printing (with unicode) tries to determine encoding of sys.stdout. When running under mod_wsgi sys.stdout is restricted from all access and thus causing a traceback. Function in question is pretty_try_use_unicode() Would it be just enough to add IOError to catched exceptions along with UnicodeError? Is there a better solution? -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/afb89dc3-aa0f-4b1e-bc54-153601554610%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
