I am using Sagemath 8.5 Notebook on Win 7 and trying to interface to Maple.
Maple is already added to my path ("maple" command runs Maple by the
command line).
However, I can't run even simplest commands like maple('3*5'). It takes too
long and when I interrupt it, the attached message appears.
I will be grateful if someone helps.
Regards,
Benyamin
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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-support.
For more options, visit https://groups.google.com/d/optout.
Maple crashed -- automatically restarting.
Interrupting Maple...
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-b62d173139f0> in <module>()
----> 1 maple('3 * 5')
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/interface.pyc
in __call__(self, x, name)
278
279 if isinstance(x, string_types):
--> 280 return cls(self, x, name=name)
281 try:
282 return self._coerce_from_special_method(x)
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc
in __init__(self, parent,
value, is_name, name)
1436 else:
1437 try:
-> 1438 self._name = parent._create(value, name=name)
1439 # Convert ValueError and RuntimeError to TypeError for
1440 # coercion to work properly.
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/interface.pyc
in _create(self, value,
name)
474 def _create(self, value, name=None):
475 name = self._next_var_name() if name is None else name
--> 476 self.set(name, value)
477 return name
478
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/maple.pyc
in set(self, var, value)
622 """
623 cmd = '%s:=%s:' % (var, value)
--> 624 out = self.eval(cmd)
625 if out.find("error") != -1:
626 raise TypeError("Error executing code in
Maple\nCODE:\n\t%s\nMaple ERROR:\n\t%s" % (cmd,
out))
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc
in eval(self, code, strip,
synchronize, locals, allow_use_file, split_lines, **kwds)
1350 elif split_lines:
1351 return '\n'.join([self._eval_line(L,
allow_use_file=allow_use_file, **kwds)
-> 1352 for L in code.split('\n') if L
!= ''])
1353 else:
1354 return self._eval_line(code,
allow_use_file=allow_use_file, **kwds)
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/maple.pyc
in _eval_line(self, line,
allow_use_file, wait_for_prompt, restart_if_needed)
574 with gc_disabled():
575 z = Expect._eval_line(self, line,
allow_use_file=allow_use_file,
--> 576
wait_for_prompt=wait_for_prompt).replace('\\\n','').strip()
577 if z.lower().find("error") != -1:
578 raise RuntimeError("An error occurred running a Maple
command:\nINPUT:\n%s\nOUTPUT:\n%s" % (line, z))
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc
in _eval_line(self, line,
allow_use_file, wait_for_prompt, restart_if_needed)
968 try:
969 self._synchronize()
--> 970 return
self._eval_line(line,allow_use_file=allow_use_file,
wait_for_prompt=wait_for_prompt, restart_if_needed=False)
971 except (TypeError, RuntimeError):
972 pass
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/maple.pyc
in _eval_line(self, line,
allow_use_file, wait_for_prompt, restart_if_needed)
574 with gc_disabled():
575 z = Expect._eval_line(self, line,
allow_use_file=allow_use_file,
--> 576
wait_for_prompt=wait_for_prompt).replace('\\\n','').strip()
577 if z.lower().find("error") != -1:
578 raise RuntimeError("An error occurred running a Maple
command:\nINPUT:\n%s\nOUTPUT:\n%s" % (line, z))
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc
in _eval_line(self, line,
allow_use_file, wait_for_prompt, restart_if_needed)
982 out = ''
983 except KeyboardInterrupt:
--> 984 self._keyboard_interrupt()
985 raise KeyboardInterrupt("Ctrl-c pressed while running
%s"%self)
986 if self._terminal_echo:
/opt/sagemath-8.5/local/lib/python2.7/site-packages/sage/interfaces/maple.pyc
in _keyboard_interrupt(self)
332 """
333 print("Interrupting %s..." % self)
--> 334 self._expect.sendline(chr(3)) # send ctrl-c
335 self._expect.expect(self._prompt)
336 raise RuntimeError("Ctrl-c pressed while running %s" % self)
AttributeError: 'NoneType' object has no attribute 'sendline'