-
-
Notifications
You must be signed in to change notification settings - Fork 563
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 to Python 3.7.x #25680
Comments
New commits:
|
Commit: |
Author: Jeroen Demeyer |
comment:3
I don't think we should be in any hurry on this. All the last ~year's work of Python 3 porting has been targeting Python 3.6, and I think I'd rather stick with that before risking throwing everything out of whack again. Between Python 3.6 and 3.7 I suspect the differences, if any, will be minor. But I'd rather try to stabilize on 3.6 first (to which we're quite close), then deal with those differences, rather than change Python versions again. Also I don't know that Python 3.7 has been ported to Cygwin yet (although it does contain a number of useful fixes for Cygwin, I do know). That said, if you know any specific changes in Python 3.7 (other than the aforementioned Cygwin fixes) that would actively make our porting effort easier I'd consider it... |
comment:5
Jeroen has said elsewhere that islice will accept Sage integers instead of just ints. I am again becoming tired and frustated by the slow pace of progress towards py3. And by the large amount of difficult work that remains.. |
comment:6
Ah, I remember making an issue about that, but I don't think I followed what the resolution was. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:8
Well there's this python/cpython#1918 But unless there are other fixes I'm not seeing it's annoying that this was only fixed for |
comment:9
Replying to @fchapoton:
Unfortunately I'm not convinced that upgrading Python yet again is going to make that go any faster. In any case I don't actually have that much "difficult" work remaining. Just dozens of little issues. My Python 3 branch has < 600 modules failing, and most of it appears to minor issues (at one point I had it down to ~400 and I don't know why it ballooned up again, but one or two small changes in just the right places can do that with Sage...) Also I'll add if you're not using a patched pynac you're going to have lots, lots more "serious" looking issues. We still need to get a pynac upgrade in (I've been manually installing pynac with my Python 3 fixes every time I re-build sage). |
comment:10
Replying to @embray:
#25391 is a pretty serious issue which is fixed by a Python upgrade (probably also by upgrading to 3.6.6 but I haven't tested that). |
comment:11
Replying to @embray:
First of all, I do not think that this 3.6 -> 3.7 will throw everything out of whack. However, regardless of that, we'll have to upgrade sooner or later. I don't see the point of having a perfectly working Sage on an outdated Python version. And for the many issues that we still have to fix, it would be better to make sure that they work on Python 3.7 from the start. |
comment:12
I still think we have very hard remaining problems, among which
|
Attachment: python3-3.7.0.log |
comment:14
I get the following error
full python3.7 install log in attachement |
comment:15
Failure to build |
comment:16
Indeed i don't get the error after installing Note : sage |
comment:17
next error during the build is :
Issue reference : pypa/pipenv#956 |
comment:18
To be honest we haven't updated pexpect in vanilla sage for a while. It may be a good idea to do that - in a separate ticket. |
comment:19
Do we need to update pexpect or to patch pipenv ? |
comment:20
No, |
comment:21
I am at |
comment:173
I'm getting docbuild failures due to
|
comment:174
I don't see this warning. You don't have that stupid mathjax recursive link, do you? Oh, |
comment:175
I don't know what was wrong with the docs. I did |
comment:176
I am having a bad problem when running the tests where every test outputs something like:
even if the test succeeds. I think this may be a bug (big shock) in the |
comment:177
(Obviously the bug itself is relatively harmless: It's just running a |
comment:178
I see; this is a recurrence of the problem I originally described here: #25107 comment:14 It's resurfaced, because the I think this may be a broader issue with |
comment:179
If you would consider including this commit, or something like it, that would resolve the problem I'm having with unhandled exceptions in With this fix, I can see more clearly that there are two test failures remaining on Cygwin:
The first one is merely a manifestation of #27514. Still need to rethink exactly how that test is implemented. The second is more disconcerting, being a segfault (but at least repeatable). I will look into it next. |
Changed reviewer from Vincent Klein to Vincent Klein, Erik Bray |
comment:181
I think the segfault might be related to openblas issues that I've already fixed, but may not be incorporated in my current build (since I started building this Python 3 branch some time ago, possibly before all the relevant openblas fixes were incorporated). |
Changed dependencies from #27523 to none |
Changed reviewer from Vincent Klein, Erik Bray to Vincent Klein, Erik Bray, Frédéric Chapoton |
comment:183
I am setting this to positive now, so that we can start again making progress on #27519. We can always fix details in later tickets. |
Changed branch from u/jdemeyer/upgrade_to_python_3_7_0 to |
comment:185
Replying to @fchapoton:
Why would you do that? I explicitly pointed out that something was broken and proposed a fix, but that fix wasn't applied yet. Doing this "now" has no direct impact on making progress on #27519. You're just rushing things for no reason and leaving them broken. |
Changed commit from |
comment:186
Replying to @embray:
I meant to follow up here. The segfault was nothing to do with Python 3 (fortunately) and is fixed by #27565 . Not exactly sure why I wasn't seeing that bug before--it's possible I was building OpenBLAS out of its recent |
comment:187
Do we have a follow up on that ticket anywhere? In sage-on-gentoo I have a segfault when building the documentation with python 3.7.3 (but not 2.7 or 3.6). Am I alone with that issue?
|
comment:188
Interesting. You're building with assertions enabled. |
comment:189
Can you attach or send me that |
comment:190
Attachment: matrix1.c.bz2.gz Attached as requested (compressed). |
comment:191
Thanks, that clears things up. Follow-up ticket at #27688. |
Tarball: https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
CC: @fchapoton @embray @kiwifb @mkoeppe @slel
Component: packages: standard
Keywords: upgrade
Author: Jeroen Demeyer
Branch:
5a09cf1
Reviewer: Vincent Klein, Erik Bray, Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/25680
The text was updated successfully, but these errors were encountered: