#18908: mathematica interface hangs if mathematica is not installed
-------------------------------------+-------------------------------------
       Reporter:  dimpase            |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.8
      Component:  interfaces:        |   Resolution:
  optional                           |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:                     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/18908       |  6b9a1158e64480fe9daff56e179dc9d0fcbf689d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by slabbe):

 I have {{{Mathematica 10.0 for Linux x86 (64-bit)}}} installed on my
 machine. I installed the branch. I did make start (I think sage -b does
 not update the script right?). And it seems to work:
 {{{
 sage: mathematica(10)
 10
 }}}

 To make sure that the new code was really tested after the make start, I
 added some print:

 {{{
 diff --git a/src/bin/math-readline b/src/bin/math-readline
 index e6d40ef..ead0980 100755
 --- a/src/bin/math-readline
 +++ b/src/bin/math-readline
 @@ -11,6 +11,11 @@ try:
  except:
      sys.exit('ERROR: executable math not found')

 +print "NEW CODE IS BEING TESTED!!!"
 +print "NEW CODE IS BEING TESTED!!!"
 +print "NEW CODE IS BEING TESTED!!!"
 +print "NEW CODE IS BEING TESTED!!!"
 +
  f1 = subprocess.Popen('math', shell=True, stdin=subprocess.PIPE).stdin
  f1.flush()
  try:
 }}}

 did make start, run sage, but then, I still get
 {{{
 sage: mathematica(10)
 10
 }}}
 So is the new code really run? Is it okay if the print are not shown?

--
Ticket URL: <http://trac.sagemath.org/ticket/18908#comment:11>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to