Hi,
I just discovered Sage today.
Looks very promising! Until now I worked mainly with Maxima, Octave,
Gnuplot and the Emacs calc.
I work on Mac OS X 10.5.2 and copied the sage folder from sage-2.11-
osx10.5-intel-i386-Darwin.dmg to /Applications.
I think there's something wrong with this binary collection:
If I enter
sage: sin(pi)
in the interactive shell, there only appear - after a couple of
seconds - error messages. It looks like it can't start Maxima. Similar
error messages appear when I work in the notebook.
Best regards,
Samuel
--------- sage output: ---------
sage: sin(3)
Timeout exceeded in read_nonblocking().
<pexpect.spawn instance at 0x6dcd990>
version: 2.0 ($Revision: 1.151 $)
command: /Applications/sage/local/bin/maxima
args: ['/Applications/sage/local/bin/maxima', '-p', '/Applications/
sage/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: 1001
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)
/Users/sam/<ipython console> in <module>()
/Applications/sage/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
/Applications/sage/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:
/Applications/sage/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:
/Applications/sage/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
/Applications/sage/local/lib/python/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
/Applications/sage/local/lib/python/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)
/Applications/sage/local/lib/python/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
/Applications/sage/local/lib/python/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
/Applications/sage/local/lib/python/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
/Users/sam/sage_object.pyx in
sage.structure.sage_object.SageObject.__repr__()
/Applications/sage/local/lib/python2.5/site-packages/sage/calculus/
calculus.py in _repr_(self, simplify)
5894 return self._simp._repr_(simplify=False)
5895 else:
-> 5896 return self.simplify()._repr_(simplify=False)
5897 ops = self._operands
5898 try:
/Applications/sage/local/lib/python2.5/site-packages/sage/calculus/
calculus.py in simplify(self)
3186 return self._simp
3187 except AttributeError:
-> 3188 S =
evaled_symbolic_expression_from_maxima_string(self._maxima_init_())
3189 S._simp = None
3190 self._simp = S
/Applications/sage/local/lib/python2.5/site-packages/sage/calculus/
calculus.py in evaled_symbolic_expression_from_maxima_string(x)
8213 x^e + I + e^pi
8214 """
-> 8215 return
symbolic_expression_from_maxima_string(maxima.eval(x))
8216
8217 def first_var(expr):
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
expect.py in eval(self, code, strip, **kwds)
705 try:
706 with gc_disabled():
--> 707 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
708 except KeyboardInterrupt:
709 # DO NOT CATCH KeyboardInterrupt, as it is being
caught
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
maxima.py in _eval_line(self, line, allow_use_file, wait_for_prompt,
reformat, error_check)
556 return repr(a)
557 else:
--> 558 self._sendline(line)
559
560 if not wait_for_prompt:
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
maxima.py in _sendline(self, str)
430
431 def _sendline(self, str):
--> 432 self._sendstr(str)
433 os.write(self._expect.child_fd, os.linesep)
434
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
maxima.py in _sendstr(self, str)
435 def _sendstr(self, str):
436 if self._expect is None:
--> 437 self._start()
438 try:
439 os.write(self._expect.child_fd, str)
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
maxima.py in _start(self)
420
421 def _start(self):
--> 422 Expect._start(self)
423 self._eval_line('0;')
424
/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
expect.py in _start(self, alt_message, block_during_init)
461 failed_to_start.append(self.__name)
462 print msg
--> 463 raise RuntimeError, "Unable to start
%s"%self.__name
464 self._expect.timeout = None
465 with gc_disabled():
<type 'exceptions.RuntimeError'>: Unable to start maxima
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---