#20388: Fix the Magma interface to work with remote installations
-------------------------------------+-------------------------------------
Reporter: mmasdeu | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.2
Component: interfaces: | Resolution:
optional | Merged in:
Keywords: magma, remote | Reviewers:
Authors: Marc Masdeu | Work issues:
Report Upstream: N/A | Commit:
Branch: | a8ee09a95a6bf7b80564dd644c7d82b609b790c7
u/mmasdeu/20388-fix | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Tested succesfully with `magma` and `matlab`! Great.
Though, there is something wrong with `maple` (not sure where and how it
might be related to the changes in this ticket)
{{{
sage: maple.set_server_and_command('calcul1')
sage: maple('2+2') # hang out infinitely
}}}
And even after a Ctrl-C I do not have back the sage prompt (only
`^CInterrupting Maple...`). After a second Ctrl-C I get the prompt back
with the following traceback
{{{
...
.../interfaces/maple.pyc in set(self, var, value)
619 """
620 cmd = '%s:=%s:' % (var, value)
--> 621 out = self.eval(cmd)
622 if out.find("error") != -1:
623 raise TypeError("Error executing code in
Maple\nCODE:\n\t%s\nMaple ERROR:\n\t%s" % (cmd, out))
.../interfaces/expect.pyc in eval(self, code, strip, synchronize, locals,
allow_use_file, split_lines, **kwds)
1258 elif split_lines:
1259 return '\n'.join([self._eval_line(L,
allow_use_file=allow_use_file, **kwds)
-> 1260 for L in code.split('\n')
if L != ''])
1261 else:
1262 return self._eval_line(code,
allow_use_file=allow_use_file, **kwds)
.../interfaces/maple.pyc in _eval_line(self, line, allow_use_file,
wait_for_prompt, restart_if_needed)
571 with gc_disabled():
572 z = Expect._eval_line(self, line,
allow_use_file=allow_use_file,
--> 573
wait_for_prompt=wait_for_prompt).replace('\\\n','').strip()
574 if z.lower().find("error") != -1:
575 raise RuntimeError("An error occurred running a
Maple command:\nINPUT:\n%s\nOUTPUT:\n%s" % (line, z))
...
}}}
(and `maple` works perfectly well on `calcul1` through `ssh`).
--
Ticket URL: <http://trac.sagemath.org/ticket/20388#comment:17>
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.