#10296: Singular interface wasting time by waiting for the prompt too often
-----------------------------------------------------------------------+----
    Reporter:  SimonKing                                               |        
 Owner:  was            
        Type:  enhancement                                             |        
Status:  new            
    Priority:  major                                                   |     
Milestone:  sage-4.7.1     
   Component:  interfaces                                              |    
Resolution:                 
    Keywords:  Singular, _eval_line, synchronization, synchronisation  |   
Work_issues:                 
    Upstream:  N/A                                                     |      
Reviewer:  Martin Albrecht
      Author:  Simon King                                              |        
Merged:                 
Dependencies:                                                          |  
-----------------------------------------------------------------------+----
Changes (by jdemeyer):

  * status:  closed => new
  * resolution:  fixed =>
  * merged:  sage-4.7.1.alpha0 =>


Comment:

 I get many failures on the buildbot, mainly on non-Linux systems (e.g. OS
 X, Solaris).  The failures look like the following:
 {{{
 sage -t -long  -force_lib devel/sage/sage/interfaces/expect.py
 **********************************************************************
 File
 "/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/devel
 /sage-main/sage/interfaces/expect.py", line 702:
     sage: singular._eval_line_using_file('def a=3;')
 Exception raised:
     Traceback (most recent call last):
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_15[5]>", line 1, in <module>
         singular._eval_line_using_file('def a=3;')###line 702:
     sage: singular._eval_line_using_file('def a=3;')
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/lib/python
 /site-packages/sage/interfaces/expect.py", line 731, in
 _eval_line_using_file
         s = self._eval_line(self._read_in_file_command(tmp_to_use),
 allow_use_file=False)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/lib/python
 /site-packages/sage/interfaces/expect.py", line 841, in _eval_line
         raise RuntimeError, "%s\nError evaluating %s in %s"%(msg, line,
 self)
     RuntimeError: [Errno 5] Input/output error
     Error evaluating <
 "/tmp/dot_sage.gjyZgjfltL/temp/bsd.local/8324//interface//tmp8502"; in
 Singular
 **********************************************************************
 [..many more similar errors..]


 sage -t -long  -force_lib devel/sage/sage/interfaces/gap.py
 **********************************************************************
 File
 "/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/devel
 /sage-main/sage/interfaces/gap.py", line 521:
     sage: a = gap(3)
 Exception raised:
     Traceback (most recent call last):
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_9[10]>", line 1, in <module>
         a = gap(Integer(3))###line 521:
     sage: a = gap(3)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/lib/python
 /site-packages/sage/interfaces/interface.py", line 201, in __call__
         return self._coerce_from_special_method(x)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/lib/python
 /site-packages/sage/interfaces/interface.py", line 227, in
 _coerce_from_special_method
         return (x.__getattribute__(s))(self)
       File "sage_object.pyx", line 463, in
 sage.structure.sage_object.SageObject._gap_
 (sage/structure/sage_object.c:3988)
       File "sage_object.pyx", line 439, in
 sage.structure.sage_object.SageObject._interface_
 (sage/structure/sage_object.c:3628)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/lib/python
 /site-packages/sage/interfaces/interface.py", line 199, in __call__
         return cls(self, x, name=name)
       File
 
"/Users/buildbot/build/sage/bsd-1/bsd_64_full/build/sage-4.7.1.alpha0/local/lib/python
 /site-packages/sage/interfaces/expect.py", line 1286, in __init__
         raise TypeError, x
     TypeError: Error evaluating $sage9:=3;; in Gap
 **********************************************************************
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10296#comment:30>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.

Reply via email to