cschwan/sage-on-gentoo — Issue #109: maple interface broken?
Author: few
Created: 2011-12-23 06:53:44+00:00
State: open

Even simple maple (version 14) commands fail with the error below. This used to work at some point in the past. Any ideas?

$ sage
----------------------------------------------------------------------
| Sage Version 4.7.2, Release Date: 2011-10-29 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: maple('1+1')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)

/home/luther/ in ()

/usr/lib/python2.7/site-packages/IPython/Prompts.pyc in __call__(self, arg)
550
551 # and now call a possibly user-defined print mechanism
--> 552 manipulated_val = self.display(arg)
553
554 # user display hooks can change the variable to be stored in

/usr/lib/python2.7/site-packages/IPython/Prompts.pyc in _display(self, arg)
576 return IPython.generics.result_display(arg)
577 except TryNext:
--> 578 return self.shell.hooks.result_display(arg)
579
580 # Assign the default display method:

/usr/lib/python2.7/site-packages/IPython/hooks.pyc in __call__(self, *args, **kw
)
139 #print "prio",prio,"cmd",cmd #dbg
140 try:
--> 141 ret = cmd(*args, **kw)
142 return ret
143 except ipapi.TryNext, exc:

/usr/lib/python2.7/site-packages/sage/misc/displayhook.pyc in result_display(ip_
self, obj)
148 # IPython's default result_display() uses the IPython.genutils.Term.
cout stream.
149 # See also local/lib/python2.6/site-packages/IPython/hooks.py.
--> 150 print_obj(IPython.genutils.Term.cout, obj)
151
152 def displayhook(obj):

/usr/lib/python2.7/site-packages/sage/misc/displayhook.pyc in print_obj(out_stre
am, obj)
140 if _check_tall_list_and_print(out_stream, obj):
141 return
--> 142 print >>out_stream, `obj`
143
144 def result_display(ip_self, obj):

/usr/lib/python2.7/site-packages/sage/interfaces/maple.pyc in __repr__(self)
1056 """
1057 self._check_valid()
-> 1058 return self.parent().get(self._name)
1059
1060 def _latex_(self):

/usr/lib/python2.7/site-packages/sage/interfaces/maple.pyc in get(self, var)
609 '2'
610 """
--> 611 s = self.eval('printf("%%q",%s)'%var)
612 return s
613

/usr/lib/python2.7/site-packages/sage/interfaces/expect.py in eval(self, code, s
trip, synchronize, locals, allow_use_file, split_lines, **kwds)
1034 if (split_lines is "nofile" and allow_use_file and
1035 self._eval_using_file_cutoff and len(code) > sel
f._eval_using_file_cutoff):
-> 1036 return self._eval_line_using_file(code)
1037 elif split_lines:
1038 return '\n'.join([self._eval_line(L, allow_use_file=
allow_use_file, **kwds)

/usr/lib/python2.7/site-packages/sage/interfaces/expect.py in _eval_line_using_f
ile(self, line)
653 tmp_to_use = self._remote_tmpfile()
654 try:
--> 655 s = self._eval_line(self._read_in_file_command(tmp_to_use),
allow_use_file=False)
656 except pexpect.EOF, msg:
657 if self._quit_string() in line:

/usr/lib/python2.7/site-packages/sage/interfaces/maple.pyc in _eval_line(self, l
ine, allow_use_file, wait_for_prompt)
559 e.expect('__sage__;')
560 e.expect(self._prompt)
--> 561 raise RuntimeError, "An error occurred running a Maple c
ommand:\nINPUT:\n%s\nOUTPUT:\n%s"%(line, z)
562 return z
563

RuntimeError: An error occurred running a Maple command:
INPUT:
read "/home/luther/.sage/temp/tina/21891//interface//tmp21896";
OUTPUT:
on line 2, unexpected end of input
Error, while reading `/home/luther/.sage/temp/tina/21891//interface//tmp21896`
sage: