Hello, I am completely new to Sage.. but I am so excited, it looks
like the ultimate tool !!!
Unfortunately, I have already big problems from the beginning...

I cannot just plot x^2 ....
here is the kind of error I get ....

any ideas ????
thnaks so much for your help !!
Julien


sage: plot(x^2,(x,300,500))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (805, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (785, 0))

---------------------------------------------------------------------------
EOF                                       Traceback (most recent call
last)

/home/julien/.sage/<ipython console> in <module>()

/usr/lib/python2.5/site-packages/sage/plot/plot.pyc in __call__(self,
funcs, *args, **kwds)
   3564             del kwds['show']
   3565         if hasattr(funcs, 'plot'):
-> 3566             G = funcs.plot(*args, **kwds)
   3567         # if we are using the generic plotting method
   3568         else:

/usr/lib/python2.5/site-packages/sage/calculus/calculus.pyc in
plot(self, *args, **kwds)
    896                     break
    897
--> 898         F = self.simplify()
    899         if isinstance(F, Symbolic_object):
    900             if hasattr(F._obj, '__call__'):

/usr/lib/python2.5/site-packages/sage/calculus/calculus.pyc in
simplify(self)
   3224             return self._simp
   3225         except AttributeError:
-> 3226             S =
evaled_symbolic_expression_from_maxima_string(self._maxima_init_())
   3227             S._simp = None
   3228             self._simp = S

/usr/lib/python2.5/site-packages/sage/calculus/calculus.pyc in
evaled_symbolic_expression_from_maxima_string(x)
   8317         x^e + I + e^pi
   8318     """
-> 8319     return
symbolic_expression_from_maxima_string(maxima.eval(x))
   8320
   8321 def first_var(expr):

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in
eval(self, code, strip, synchronize, **kwds)
    915         try:
    916             with gc_disabled():
--> 917                 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
    918         except KeyboardInterrupt:
    919             # DO NOT CATCH KeyboardInterrupt, as it is being
caught

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in
_eval_line(self, line, allow_use_file, wait_for_prompt, reformat,
error_check)
    559             return repr(a)
    560         else:
--> 561             self._sendline(line)
    562
    563         if not wait_for_prompt:

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in
_sendline(self, str)
    430
    431     def _sendline(self, str):
--> 432         self._sendstr(str)
    433         os.write(self._expect.child_fd, os.linesep)
    434

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc 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)

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in
_start(self)
    420
    421     def _start(self):
--> 422         Expect._start(self)
    423         self._eval_line('0;')
    424

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in
_start(self, alt_message, block_during_init)
    467             if block_during_init:
    468                 for X in self.__init_code:
--> 469                     self.eval(X)
    470             else:
    471                 for X in self.__init_code:

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in
eval(self, code, strip, synchronize, **kwds)
    915         try:
    916             with gc_disabled():
--> 917                 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
    918         except KeyboardInterrupt:
    919             # DO NOT CATCH KeyboardInterrupt, as it is being
caught

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in
_eval_line(self, line, allow_use_file, wait_for_prompt, reformat,
error_check)
    564             return
    565
--> 566         self._expect_expr(self._display_prompt)
    567         self._expect_expr()
    568         out = self._before()

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in
_expect_expr(self, expr, timeout)
    455                 i = self._expect.expect(expr,timeout=timeout)
    456             else:
--> 457                 i = self._expect.expect(expr)
    458             if i > 0:
    459                 v = self._expect.before

/usr/lib/python2.5/site-packages/pexpect.pyc in expect(self, pattern,
timeout, searchwindowsize)
   1309
   1310         compiled_pattern_list =
self.compile_pattern_list(pattern)
-> 1311         return self.expect_list(compiled_pattern_list,
timeout, searchwindowsize)
   1312
   1313     def expect_list(self, pattern_list, timeout = -1,
searchwindowsize = -1):

/usr/lib/python2.5/site-packages/pexpect.pyc in expect_list(self,
pattern_list, timeout, searchwindowsize)
   1323         self.searchwindowsize value is used. """
   1324
-> 1325         return self.expect_loop(searcher_re(pattern_list),
timeout, searchwindowsize)
   1326
   1327     def expect_exact(self, pattern_list, timeout = -1,
searchwindowsize = -1):

/usr/lib/python2.5/site-packages/pexpect.pyc in expect_loop(self,
searcher, timeout, searchwindowsize)
   1394                 self.match = None
   1395                 self.match_index = None
-> 1396                 raise EOF (str(e) + '\n' + str(self))
   1397         except TIMEOUT, e:
   1398             self.buffer = incoming

EOF: End Of File (EOF) in read_nonblocking(). Exception style
platform.
<pexpect.spawn object at 0xb59422c>
version: 2.3 ($Revision: 399 $)
command: /usr/bin/maxima
args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage-
maxima.lisp']
searcher: searcher_re:
    0: re.compile("<sage-display>")
buffer (last 100 chars):
before (last 100 chars):
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i2) xmalloc: out of virtual memory

after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: 2
flag_eof: True
pid: 15478
child_fd: 3
closed: False
timeout: None
delimiter: <class 'pexpect.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 10000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0
delayafterclose: 0.1
delayafterterminate: 0.1
sage:

-- 
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
URL: http://www.sagemath.org

Reply via email to