#20173: Error executing code in Mathematica
-------------------------------+------------------------
Reporter: yzh | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-7.1
Component: interfaces | Resolution:
Keywords: mathematica | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------+------------------------
Comment (by mkoeppe):
I was able to reproduce this error (same Mathematica version 10.3.1.0,
also on OS X.)
This error is caused by sporadic double echoing, which confuses the
pexpect code. This can be seen at the end of the logfile generated by the
above testcase.
I'm not sure where the double echoing comes from. Perhaps some strangeness
of Mac OS ptys, perhaps a race condition, perhaps math-readline is doing
something wrong, perhaps a Mathematica bug.
A workaround is to disable echoing:
{{{
diff --git a/src/bin/math-readline b/src/bin/math-readline
index 5a13906..72e3795 100755
--- a/src/bin/math-readline
+++ b/src/bin/math-readline
@@ -9,6 +9,9 @@ import sys, signal, subprocess
import readline
from six.moves import input
+import os
+os.system("stty -echo")
+
def child_exited(*args):
global child
status = child.poll()
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/20173#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.