Opened 7 years ago
Last modified 5 years ago
#13892 new defect
Mathematica interface is broken by Mathematica 9
Reported by: | charpent | Owned by: | was |
---|---|---|---|
Priority: | major | Milestone: | sage-6.4 |
Component: | interfaces: optional | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Something seems to have changed in Mathematica version 9 interface with "the rest of the world".
Setup(s) : Debian wheezy with self-compiled sage v 5.4.1 then v 5.5, Mathematica Linux 64 bits V8 then V9.
(1) sage v 5.4 <--> Mathematica V8 : OK
(2)sage v 5.5 <--> Mathematica V9 : doesn't work. Sage reports to be "unable to start Mathematica". However, Mathematica works both from the command line (math) or from the GUI (mathematica).
(3) sage v 5.5 <--> Mathematica V8 : OK again.
I've also seen (1) and (3) on a smallish 32 bit machine (Again, debian wheezy + self-compiled sage (this was slooow..)).
This issue has been discussed on sage-support ; William Stein suggested writing an auxilliary app communicating with Mathematica via the MathLink? protocol.
Change History (6)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
- Milestone changed from sage-5.11 to sage-5.12
comment:3 Changed 6 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:4 Changed 6 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:5 Changed 6 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:6 Changed 5 years ago by
- Component changed from interfaces to interfaces: optional
I have replicated this with Sage 5.10 and Mathematica 9 on OS X (Leopard). I believe the problem is that Mathematica 9 quits as soon as it hits an EOF if you redirect its output:
Here's one workaround for this I found involving "tail -f" and a FIFO:
http://mathematica.stackexchange.com/questions/23217/keep-mathkernel-running-in-background-speed-up-execution-time
but perhaps there's some easy way to imitate this just using pexpect?