Looks like I would want this single commit.
https://github.com/pexpect/pexpect/commit/aac5897aa12daf056b8fe08f1b6512d9f60c2d27
The branch seems otherwise strangely stale (210 commits
behind master). May be someone didn't merge it in the
right branch?

Francois

On 05/08/15 12:02, François Bissey wrote:
I have other ways but if it mostly work and the notebook also works
we may want to upgrade that antiquity like there is no tomorrow.

Francois

On 05/08/15 10:07, Bill Page wrote:
Maybe this patch solves the problem:

https://github.com/pexpect/pexpect/pull/109/files

I pulled pexpect 3.x from github which as I understand it is quite a
few patches ahead of 3.3.

$ git clone https://github.com/pexpect/pexpect.git
$ cd pexpect
$ git checkout 3.x

then installed it into my sage 6.6 the hard way (maybe there is an
easier way?)

$ $HOME/sage/sage -python setup.py install --prefix $HOME/sage/local
$ rm /home/wspage/sage/local/lib/python2.7/site-packages/pexpect.*
$ rm
/home/wspage/sage/local/lib/python2.7/site-packages/pexpect-2.0-py2.7.egg-info


and rebuilt the sage library

$ cd $HOME/sage
$ ./sage -b

Now I get only one failure in

$ ./sage -t --long src/sage/interfaces/expect.py



On 7 May 2015 at 08:34, Francois Bissey
<francois.bis...@canterbury.ac.nz> wrote:
If you want doctests failures here is a sample (6.7.beta4):
sage -t --long
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.py
**********************************************************************
File "/usr/lib64/python2.7/site-packages/sage/interfaces/expect.py",
line 285, in sage.interfaces.expect.Expect.pid
Failed example:
     pid = gap.pid()
Exception raised:
     Traceback (most recent call last):
       File
"/usr/lib64/python2.7/site-packages/sage/doctest/forker.py", line
496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File
"/usr/lib64/python2.7/site-packages/sage/doctest/forker.py", line
858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest sage.interfaces.expect.Expect.pid[0]>", line 1,
in <module>
         pid = gap.pid()
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/expect.py", line
296, in pid
         self._start()
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line
1168, in _start
         gap_reset_workspace(verbose=False)
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line
1507, in gap_reset_workspace
         g.eval('SetUserPreference("HistoryMaxLines", 30)')
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line
570, in eval
         result = Expect.eval(self, input_line, **kwds)
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/expect.py", line
1222, in eval
         for L in code.split('\n') if L != ''])
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line
727, in _eval_line
         self._start()
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line
1163, in _start
         Expect._start(self, "Failed to start GAP.")
       File
"/usr/lib64/python2.7/site-packages/sage/interfaces/expect.py", line
425, in _start
         self._expect = pexpect.spawn(cmd, logfile=self.__logfile,
env=pexpect_env)
       File "/usr/lib64/python2.7/site-packages/pexpect/__init__.py",
line 493, in __init__
         fd = sys.__stdin__.fileno()
     ValueError: I/O operation on closed file

this particular failure is all over the place with pexpect 3.3 so
there is
something that is in need of updating on expect.py side before going
ahead.

François

On 7/05/2015, at 14:59, Bill Page <bill.p...@newsynthesis.org> wrote:

Is there a possibility of creating an experimental package to install
pexpect 3.3 ?

I see references to "doctests failing" but no details.  It would be
good to make this easier to test.

On 6 May 2015 at 22:41, leif <not.rea...@online.de> wrote:
Bill Page wrote:
After reading the docs:

http://pexpect.readthedocs.org/en/latest/index.html

It seems that version 3 and later are supposed to handler unicode
properly.  Version 3.3 requires Python 2.6 or later.  Since Sage is
already at Python 2.7 is there a good reason why Sage is still using
an older version of pexpect?

http://trac.sagemath.org/ticket/502 (!)

http://trac.sagemath.org/ticket/10295


--
You received this message because you are subscribed to the Google
Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to