Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mathematica interface is broken by Mathematica 9 #13892

Closed
EmmanuelCharpentier mannequin opened this issue Dec 31, 2012 · 3 comments
Closed

Mathematica interface is broken by Mathematica 9 #13892

EmmanuelCharpentier mannequin opened this issue Dec 31, 2012 · 3 comments

Comments

@EmmanuelCharpentier
Copy link
Mannequin

EmmanuelCharpentier mannequin commented Dec 31, 2012

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.

Component: interfaces: optional

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/13892

@EmmanuelCharpentier EmmanuelCharpentier mannequin added this to the sage-5.11 milestone Dec 31, 2012
@NathanDunfield
Copy link

comment:1

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:

 math9 > /tmp/math9.log   # quits immediately after printing the banner to the logfile. 

 math8 > /tmp/math8.log   # Takes keyboard input and prints output to the logfile as expected.

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?

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe
Copy link
Member

mkoeppe commented Dec 2, 2021

comment:7

outdated, should close

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 2, 2021
@dimpase
Copy link
Member

dimpase commented Dec 2, 2021

Reviewer: Dima Pasechnik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants