On 8/27/07, gsage <[EMAIL PROTECTED]> wrote:
>
> I d/l the source and it compiled fine. However, Sage could not start
> maxima.
>

(1) Does the file SAGE_ROOT/local/bin/sage-maxima.lisp exist?
(2) What happens if you do:
   sage: !maxima -p "$SAGE_ROOT/local/bin/sage-maxima.lisp"

Does this happen?
sage: !maxima -p "$SAGE_ROOT/local/bin/sage-maxima.lisp"
Maxima 5.12.0 http://maxima.sourceforge.net
Using Lisp CLISP 2.41 (2006-10-13)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) <sage-display>
sage:

> Here's the error message from the command line:
>
> <input>
> sage: sqrt(4)
>
> <output>
> Timeout exceeded in read_nonblocking().
> <pexpect.spawn instance at 0xaeee448c>
> version: 2.0 ($Revision: 1.151 $)
> command: /home/myhome/Desktop/sage-2.8.2/local/bin/maxima
> args: ['/home/myhome/Desktop/sage-2.8.2/local/bin/maxima', '-p', '/
> home/myhome/Desktop/sage-2.8.2/local/bin/sage-maxima.lisp']
> patterns:
>     \(\%i[0-9]+\)
> buffer (last 100 chars):
> before (last 100 chars):          :R1      ABORT
> ABORT          :R2      ABORT
> ABORT          :R3      ABORT
> Break 1 [4]>
> after: <class 'pexpect.TIMEOUT'>
> match: None
> match_index: None
> exitstatus: None
> flag_eof: 0
> pid: 2808
> child_fd: 3
> timeout: 30
> delimiter: <class 'pexpect.EOF'>
> logfile: None
> maxread: 10000
> searchwindowsize: None
> delaybeforesend: 0
> ---------------------------------------------------------------------------
> <type 'exceptions.RuntimeError'>          Traceback (most recent call
> last)
>
> /home/myhome/Desktop/sage-2.8.2/<ipython console> in <module>()
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/
> IPython/Prompts.py in __call__(self, arg)
>     521
>     522             # and now call a possibly user-defined print
> mechanism
> --> 523             manipulated_val = self.display(arg)
>     524
>     525             # user display hooks can change the variable to be
> stored in
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/
> IPython/Prompts.py in _display(self, arg)
>     545         """
>     546
> --> 547         return self.shell.hooks.result_display(arg)
>     548
>     549     # Assign the default display method:
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/
> IPython/hooks.py in __call__(self, *args, **kw)
>     132             #print "prio",prio,"cmd",cmd #dbg
>     133             try:
> --> 134                 ret = cmd(*args, **kw)
>     135                 return ret
>     136             except ipapi.TryNext, exc:
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/
> IPython/hooks.py in result_display(self, arg)
>     160
>     161     if self.rc.pprint:
> --> 162         out = pformat(arg)
>     163         if '\n' in out:
>     164             # So that multi-line strings line up with the left
> column of
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/pprint.py in
> pformat(self, object)
>     109     def pformat(self, object):
>     110         sio = _StringIO()
> --> 111         self._format(object, sio, 0, 0, {}, 0)
>     112         return sio.getvalue()
>     113
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/pprint.py in
> _format(self, object, stream, indent, allowance, context, level)
>     127             self._readable = False
>     128             return
> --> 129         rep = self._repr(object, context, level - 1)
>     130         typ = _type(object)
>     131         sepLines = _len(rep) > (self._width - 1 - indent -
> allowance)
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/pprint.py in
> _repr(self, object, context, level)
>     193     def _repr(self, object, context, level):
>     194         repr, readable, recursive = self.format(object,
> context.copy(),
> --> 195                                                 self._depth,
> level)
>     196         if not readable:
>     197             self._readable = False
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/pprint.py in
> format(self, object, context, maxlevels, level)
>     205         and whether the object represents a recursive
> construct.
>     206         """
> --> 207         return _safe_repr(object, context, maxlevels, level)
>     208
>     209
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/pprint.py in
> _safe_repr(object, context, maxlevels, level)
>     290         return format % _commajoin(components), readable,
> recursive
>     291
> --> 292     rep = repr(object)
>     293     return rep, (rep and not rep.startswith('<')), False
>     294
>
> /home/myhome/Desktop/sage-2.8.2/sage_object.pyx in
> sage_object.SageObject.__repr__()
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> calculus/calculus.py in _repr_(self, simplify)
>    3543                 return self._simp._repr_(simplify=False)
>    3544             else:
> -> 3545                 return self.simplify()._repr_(simplify=False)
>    3546         ops = self._operands
>    3547         try:
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> calculus/calculus.py in simplify(self)
>    2018             return self._simp
>    2019         except AttributeError:
> -> 2020             S =
> evaled_symbolic_expression_from_maxima_string(self._maxima_init_())
>    2021             S._simp = S
>    2022             self._simp = S
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> calculus/calculus.py in
> evaled_symbolic_expression_from_maxima_string(x)
>    4871
>    4872 def evaled_symbolic_expression_from_maxima_string(x):
> -> 4873     return
> symbolic_expression_from_maxima_string(maxima.eval(x))
>    4874
>    4875
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> interfaces/expect.py in eval(self, code, strip, **kwds)
>     521         code = code.strip()
>     522         try:
> --> 523             return '\n'.join([self._eval_line(L, **kwds) for L
> in code.split('\n') if L != ''])
>     524         except KeyboardInterrupt:
>     525             self._keyboard_interrupt()
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> interfaces/maxima.py in _eval_line(self, line, allow_use_file,
> wait_for_prompt, reformat, error_check)
>     530             return repr(a)
>     531         else:
> --> 532             self._sendline(line)
>     533
>     534         if not wait_for_prompt:
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> interfaces/maxima.py in _sendline(self, str)
>     423
>     424     def _sendline(self, str):
> --> 425         self._sendstr(str)
>     426         os.write(self._expect.child_fd, os.linesep)
>     427
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> interfaces/maxima.py in _sendstr(self, str)
>     428     def _sendstr(self, str):
>     429         if self._expect is None:
> --> 430             self._start()
>     431         try:
>     432             os.write(self._expect.child_fd, str)
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> interfaces/maxima.py in _start(self)
>     413
>     414     def _start(self):
> --> 415         Expect._start(self)
>     416         self._eval_line('0;')
>     417
>
> /home/myhome/Desktop/sage-2.8.2/local/lib/python2.5/site-packages/sage/
> interfaces/expect.py in _start(self, alt_message, block_during_init)
>     330             failed_to_start.append(self.__name)
>     331             print msg
> --> 332             raise RuntimeError, "Unable to start
> %s"%self.__name
>     333         self._expect.timeout = None
>     334         if block_during_init:
>
> <type 'exceptions.RuntimeError'>: Unable to start maxima
>
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to