Hello.

recently I've installed SAGE 3.0 on my computer (ubuntu 7.10).
everything works great when I'm working from the sage shell, or from
the notebook.

However it's very difficult to get real work done from the shell, so
I'm trying to use idle, according to the instructions given here:
http://groups.google.com/group/sage-support/msg/582b7f836eee9816

By following these instructions I'm able to load idle and to load SAGE
from the idle window.
however, when trying to use functions originated from maxima, I'm
getting an error message:

>>> from sage.all import *
>>> factor(2005)
5 * 401
>>> sqrt(4)
End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn instance at 0xa248a6c>
version: 2.0 ($Revision: 1.151 $)
command: /home/liran/SAGE/local/lib/maxima
args: ['/home/liran/SAGE/local/lib/maxima', '-p', '/home/liran/SAGE/
local/bin/sage-maxima.lisp']
patterns:
    \(\%i[0-9]+\)
buffer (last 100 chars):
before (last 100 chars): in putmessage

    r, w, x = select.select([], [self.sock], [])

error: (9, 'Bad file descriptor')


after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: 1
pid: 12471
child_fd: 5
timeout: 30
delimiter: <class 'pexpect.EOF'>
logfile: None
maxread: 10000
searchwindowsize: None
delaybeforesend: 0

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    sqrt(4)
  File "sage_object.pyx", line 92, in
sage.structure.sage_object.SageObject.__repr__ (sage/structure/
sage_object.c:620)
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
calculus/calculus.py", line 5974, in _repr_
    return self.simplify()._repr_(simplify=False)
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
calculus/calculus.py", line 3223, in simplify
    S =
evaled_symbolic_expression_from_maxima_string(self._maxima_init_())
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
calculus/calculus.py", line 8272, in
evaled_symbolic_expression_from_maxima_string
    return symbolic_expression_from_maxima_string(maxima.eval(x))
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
interfaces/expect.py", line 917, in eval
    return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
interfaces/maxima.py", line 561, in _eval_line
    self._sendline(line)
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
interfaces/maxima.py", line 432, in _sendline
    self._sendstr(str)
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
interfaces/maxima.py", line 437, in _sendstr
    self._start()
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
interfaces/maxima.py", line 422, in _start
    Expect._start(self)
  File "/home/liran/SAGE/local/lib/python2.5/site-packages/sage/
interfaces/expect.py", line 464, in _start
    raise RuntimeError, "Unable to start %s"%self.__name
RuntimeError: Unable to start maxima


I'm having no such problems when using maxima directly from the SAGE
shell:
sage: sqrt(4)
2

any ideas?
thanks.




--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to