-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade and optimize pexpect #10295
Comments
comment:1
Try version 2.4 even. This has been discussed to death several times on sage-devel. |
comment:2
When I say version 2.4 you have to go there: http://pypi.python.org/pypi/pexpect |
comment:3
Replying to @kiwifb:
Aren't the two links the same? So, you say that there might be a performance problem with more recent versions of pexpect. That's bad, because the idea was to get rid of a performance problem by upgrading... |
comment:4
cut and paste didn't work as expected the second one was meant to be: search the mailing list for pexpect, it is a proverbial can of worms. |
comment:5
2.4 is not released yet. Here's a package for 2.3 that I created. http://boxen.math.washington.edu/home/kirkby/patches/pexpect-2.3.spkg but on my OpenSolaris machine, this 2.3 package results in one doctest failure, which is:
The interface must be semi-working, as the interface to R works - or at lease the R doctest does not fail. Here's the error message of the failed doctest.
I think in some cases where we call external programs there are probably better ways of doing this. For example
Dave |
comment:6
Oops, I see this doctest is related to R. But I'm sure there are other doctests which make use of pexpect, which are passing Dave |
comment:7
While 2.4 is not on sourceforge but on pypi.python.org http://pypi.python.org/pypi/pexpect I think we can call it released unless you have other infos (from author/mailing list).
in the notebook. It produced the following for us (at the time, notice the python time stamp):
|
comment:8
Dave, have you tried plotting in the notebook? |
comment:12
Bump this. There is a pexpect 3.1 now at http://pexpect.readthedocs.org/en/latest/ (note: the sourceforge address will redirect you there). For a long time I thought pexpect was done and there wouldn't be anymore release. I think if the project is alive they may take request from us. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
Branch: u/fbissey/pexpect3.3 |
comment:17
Hum wrong stuff in that branch sorry will update shortly. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:177
Now that this has positive review otherwise, I'll also be sure to include the relevant piece in #19616. François, if you want to make the same PR as before I can do that; I'm not sure how to revert reverting a changeset on Github, I just want to make sure your name is still attached to that change. |
comment:178
Replying to @kcrisman:
On it. |
comment:179
I have made one additional pull request to It is really quite trivial and it provided yet another easy optimization. If some reviewer agrees, I will add that patch to the branch here. |
comment:180
Replying to @kiwifb:
This is now sagemath/sagenb#356 |
This comment has been minimized.
This comment has been minimized.
comment:183
Merged the latest version of #19616. |
This comment has been minimized.
This comment has been minimized.
comment:187
Follow-up at #19736. |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, Bill Page |
Changed branch from u/jdemeyer/pexpect3.3 to |
We use pexpect version 2.0. Shouldn't we upgrade to the current version 4.0.1?
See also #10294.
New upstream tarballs:
Patches included and submitted upstream:
delayafterread
class attribute, for removing Superfluous sleep pexpect/pexpect#291Note that this branch includes #19616.
Throughput timings (best out of 5):
pexpect 2.0 upstream:
pexpect 4.0.1 upstream:
pexpect 4.0.1 + Sage patches:
Latency timings (best out of 5):
pexpect 2.0 upstream:
pexpect 4.0.1 upstream:
pexpect 4.0.1 + Sage patches:
Depends on #19671
Upstream: Reported upstream. Developers acknowledge bug.
CC: @sagetrac-drkirkby @nexttime @sagetrac-Vincent-Neri
Component: interfaces
Keywords: pexpect upgrade
Author: François Bissey, Bill Page, Jeroen Demeyer
Branch/Commit:
9351ccb
Reviewer: Jeroen Demeyer, Bill Page
Issue created by migration from https://trac.sagemath.org/ticket/10295
The text was updated successfully, but these errors were encountered: