Public bug reported:

Binary package hint: sagemath

----------------------------------------------------------------------          
                                                            
| SAGE Version 3.0.5, Release Date: 2008-07-11                       |          
                                                            
| Type notebook() for the GUI, and license() for information.        |          
                                                            
----------------------------------------------------------------------          
                                                            

sage: sage: x, y = var('x, y')
sage: sage: solve([x+y==6, x-y==4], x, y)
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', (865, 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', (865, 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', (575, 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', (865, 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', (387, 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', (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/jon/<ipython console> in <module>()

/usr/lib/python2.5/site-packages/sage/calculus/equations.pyc in solve(f, *args, 
**kwds)
   1378                 return []                                               
       
   1379                                                                         
       
-> 1380         m = maxima(list(f))                                             
       
   1381                                                                         
       
   1382         try:                                                            
       

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in __call__(self, x)
    375     def __call__(self, x):                                              
    376         import sage.rings.all                                           
--> 377         return Expect.__call__(self, x)                                 
    378                                                                         
    379     def __init__(self, script_subdirectory=None, logfile=None, 
server=None,

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in __call__(self, x)
    954             pass                                                        
    955         try:                                                            
--> 956             return self._coerce_impl(x, use_special=False)              
    957         except TypeError, msg:                                          
    958             try:                                                        

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in 
_coerce_impl(self, x, use_special)
    999                     z.append(v)                                         
                 
   1000                 else:                                                   
                 
-> 1001                     w = self(v)                                         
                 
   1002                     A.append(w.name())                                  
                 
   1003                     z.append(w)                                         
                 

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in __call__(self, x)
    375     def __call__(self, x):                                              
    376         import sage.rings.all                                           
--> 377         return Expect.__call__(self, x)                                 
    378                                                                         
    379     def __init__(self, script_subdirectory=None, logfile=None, 
server=None,

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in __call__(self, x)
    948             return cls(self, x)                                         
    949         try:                                                            
--> 950             return self._coerce_from_special_method(x)                  
    951         except TypeError:                                               
    952             raise                                                       

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in 
_coerce_from_special_method(self, x)
    972             s = '_gp_'                                                  
                   
    973         try:                                                            
                   
--> 974             return (x.__getattribute__(s))(self)                        
                   
    975         except AttributeError:                                          
                   
    976             return self(x._interface_init_())                           
                   

/usr/lib/python2.5/site-packages/sage/calculus/equations.pyc in _maxima_(self, 
session)
    569             return SageObject._maxima_(self, 
sage.calculus.calculus.maxima)    
    570         else:                                                           
       
--> 571             return SageObject._maxima_(self, session)                   
       
    572                                                                         
       
    573     def substitute(self, *args, **kwds):                                
       

/usr/lib/python2.5/site-packages/sage/structure/sage_object.so in
sage.structure.sage_object.SageObject._maxima_
(sage/structure/sage_object.c:3076)()

/usr/lib/python2.5/site-packages/sage/structure/sage_object.so in
sage.structure.sage_object.SageObject._interface_
(sage/structure/sage_object.c:2207)()

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in __call__(self, x)
    375     def __call__(self, x):                                              
    376         import sage.rings.all                                           
--> 377         return Expect.__call__(self, x)                                 
    378                                                                         
    379     def __init__(self, script_subdirectory=None, logfile=None, 
server=None,

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in __call__(self, x)
    946             return x                                                    
    947         if isinstance(x, basestring):                                   
--> 948             return cls(self, x)                                         
    949         try:                                                            
    950             return self._coerce_from_special_method(x)                  

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in __init__(self, 
parent, value, is_name)
   1212         else:                                                           
                     
   1213             try:                                                        
                     
-> 1214                 self._name = parent._create(value)                      
                     
   1215             except (TypeError, KeyboardInterrupt, RuntimeError, 
ValueError), x:              
   1216                 self._session_number = -1                               
                     

/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in _create(self, 
value)
   1090         name = self._next_var_name()                                    
   
   1091         #self._last_name = name                                         
   
-> 1092         self.set(name, value)                                           
   
   1093         return name                                                     
   
   1094                                                                         
   

/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in set(self, var, 
value)
    853             self._batch(cmd, batchload=True)                            
    
    854         else:                                                           
    
--> 855             self._eval_line(cmd)                                        
    
    856             #self._sendline(cmd)                                        
    
    857             #self._expect_expr()                                        
    

/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 0xadaa36c>
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: 6829
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:

** Affects: sagemath (Ubuntu)
     Importance: Undecided
         Status: New

-- 
sagemath on karmic can't solve a system of two variables
https://bugs.launchpad.net/bugs/529621
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to