Package: sagemath Version: 3.0.5dfsg-2 Severity: important --- Please enter the report below this line. ---
Hi, when I enter "x+x", I get the following exception: $ sage ---------------------------------------------------------------------- | SAGE Version 3.0.5, Release Date: 2008-07-11 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: x+x 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/ondra/<ipython console> in <module>() /home/ondra/lib/lib/python/IPython/Prompts.pyc in __call__(self, arg) 549 550 # and now call a possibly user-defined print mechanism --> 551 manipulated_val = self.display(arg) 552 553 # user display hooks can change the variable to be stored in /home/ondra/lib/lib/python/IPython/Prompts.pyc in _display(self, arg) 575 return IPython.generics.result_display(arg) 576 except TryNext: --> 577 return self.shell.hooks.result_display(arg) 578 579 # Assign the default display method: /home/ondra/lib/lib/python/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: /home/ondra/lib/lib/python/IPython/hooks.pyc in result_display(self, arg) 169 170 if self.rc.pprint: --> 171 out = pformat(arg) 172 if '\n' in out: 173 # So that multi-line strings line up with the left column of /usr/lib/python2.5/pprint.pyc 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 /usr/lib/python2.5/pprint.pyc 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) /usr/lib/python2.5/pprint.pyc 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 /usr/lib/python2.5/pprint.pyc 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 /usr/lib/python2.5/pprint.pyc 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 /usr/lib/python2.5/site-packages/sage/structure/sage_object.so in sage.structure.sage_object.SageObject.__repr__ (sage/structure/sage_object.c:795)() /usr/lib/python2.5/site-packages/sage/calculus/calculus.pyc in _repr_(self, simplify) 4911 return self._simp._repr_(simplify=False) 4912 else: -> 4913 return self.simplify()._repr_(simplify=False) 4914 4915 ops = self._operands /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.py 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.py 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.py 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 0xc231e2c> 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): debugger-hook* to nil. (%i2) out of memory allocating 7 bytes after a total of 104925312 bytes after: <class 'pexpect.EOF'> match: None match_index: None exitstatus: 1 flag_eof: True pid: 7801 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: This happens both on i386 and amd64. It could be a Sage incompatible version of maxima that is in Debian. Ondrej --- System information. --- Architecture: i386 Kernel: Linux 2.6.26-1-686 Debian Release: 5.0 500 unstable mirrors1.kernel.org --- Package information. --- Depends (Version) | Installed =====================================-+-============= libatlas3gf-base | 3.6.0-22 OR libatlas.so.3gf | libc6 (>= 2.7-1) | 2.7-18 libecm0 | 6.2-1 libflint-1.011 | 1.011-2 libfplll0 | 2.1.6+20071129-2 libgcc1 (>= 1:4.1.1) | 1:4.3.3-3 libgivaro0 | 3.2.10-1 libgmp3c2 | 2:4.2.2+dfsg-3 libgmpxx4ldbl | 2:4.2.2+dfsg-3 libgsl0ldbl (>= 1.9) | 1.12+dfsg-1 libiml0 (>= 1.0.3) | 1.0.3-3 liblinbox0 | 1.1.6~rc0-3 libm4ri-0.0.20080521 | 0.0.20080521-2 libmpfi0 | 1.3.4~rc4~cvs20080519-1 libmpfr1ldbl | 2.3.2.dfsg.1-1 libntl-5.4.2 | 5.4.2-4 libpari2-gmp (>= 2.3.4-1) | 2.3.4-1 libpolybori-0.5.0-0 | 0.5~rc1-1 libqd2c2a | 2.3.7-1 libreadline5 (>= 5.2) | 5.2-3.1 libsingular-3-0-4-3 | 3-0-4-3.dfsg-2 libstdc++6 (>= 4.2.1) | 4.3.3-3 libsymmetrica-2.0 | 2.0-1 libzn-poly-0.8 | 0.8-1 python (<< 2.6) | 2.5.2-3 python (>= 2.5) | 2.5.2-3 python-central (>= 0.6.7) | 0.6.8 python2.5 | 2.5.2-15 gap | 4r4p10-2 singular | 3-0-4-3.dfsg-2 maxima | 5.17.1-1 genus2reduction | 0.3-2 lcalc | 0.0.20080205-1 sympow | 1.019-4 python-matplotlib | 0.98.3-5 gfan | 0.3dfsg-1 python-gd | 0.52debian-3.1 mercurial | 1.1.2-2 python-twisted | 8.1.0-4 python-numpy | 1:1.1.1-2 python-crypto | 2.0.1+dfsg1-2.3 python-moinmoin | 1.8.1-1.1 sqlite3 | 3.5.9-6 palp | 1.1-1 ipython | 0.8.4-1 python-gnutls | 1.1.6-1 python-scipy | 0.6.0-12 python-cvxopt | 1.1-1 scons | 1.0.0-1 r-base | 2.8.1-2 gfortran | 4:4.3.2-3 python-sqlalchemy | 0.4.8-1 gmp-ecm | 6.2-1 python-sympy | 0.6.3-1 python-networkx | 0.36-2 python-pexpect | 2.3-1 cython | 0.10.2-1 python-twisted-web2 | 8.1.0-1 pari-gp | 2.3.4-1 pari-extra | 2.1-1 tachyon | 0.98~beta.dfsg-1 python-rpy | 1.0.3-6 gap-guava | 3.6-2 python-processing | 0.52-2 python-polybori | 0.5~rc1-1 libcdd-test | 094b.dfsg-4 libjs-jquery | 1.2.6-2 libsingular-dev | 3-0-4-3.dfsg-2 time | 1.7-23 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org