-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Python 3.7+: setlocale: LC_ALL: cannot change locale (C.UTF-8) from build/bin/sage-spkg and in doctests; disable use of system Python 3.6 #30053
Comments
comment:3
an easy way out is just to check whether the locale change worked, and if not, use |
comment:5
Replying to @dimpase:
+1 |
Author: Dima Pasechnik |
Commit: |
New commits:
|
comment:8
I started test runs: |
comment:9
this ticket was a result of a bug report on Arch, not centos. Hopefully it works for #30008 too. |
comment:10
Tests did not complete, because the 9.2.beta3 tests fail everywhere. https://github.com/sagemath/sage/actions/runs/157607524 Is this a github issue or have we broken sage?
|
comment:11
I just found #30064. Edit: I was cc on that, but I didn't realize how serious this is. Ok. I'll run a new test then. |
comment:12
This breaks building sphinx on windows. https://github.com/kliem/sage/runs/838933940 Same error as #30008. As far as I understand the problem is that we need some sort of UTF to make the sphinx build work. Btw, strangely centos 7 appears to work with the current beta. I don't know what happened. (And I don't know yet, if this behavior is stable). |
comment:13
And it breaks centos 8. |
comment:14
Replying to @kliem:
I'm not sure what you mean here.
|
comment:15
the error
|
comment:16
could it be that However, https://www.cygwin.com/cygwin-ug-net/setup-locale.html says:
|
comment:17
Replying to @kliem:
I just started rerunning those tests on top of the current beta. Maybe that stuff just goes away by itself. |
comment:18
Still causes this error. |
comment:19
If the centos issue is caused by the sphinx upgrade (according to #30008), why is it blocking this? This is meant to fix another (very annoying) issue on Arch. |
comment:20
It appears that #30008 fixed itself. However, this here broke the cygwin sphinx build, last I checked. It have no clue what is going on, but with this ticket we go from passing to failing. |
comment:21
It seems a default setting on Cygwin is |
comment:22
Also it should be investigated whether it was really necessary to add this line in #29033 to achieve Python 3.6 support. In particular note that |
comment:25
What problems arise if we drop the locale mangling entirely? Trac #15791 doesn't mention a problem. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:81
OK, so how about this? |
comment:82
I think that's the best solution, possibly combined with dropping 3.6 from the list of system pythons that we accept. Portability is nice and all, but we're wasting a lot of time trying to support an evolutionary dead-end with py3.6. |
comment:83
Fine with me - then please also adjust python3's spkg-configure... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:85
Replying to @mkoeppe:
fixed, as discussed - only test Please review |
Changed branch from u/dimpase/build/careful_with_C_UTF8 to u/mkoeppe/build/careful_with_C_UTF8 |
comment:88
Rationale: The changed search behavior would lead to confusing reports on sage-release. |
Changed author from Dima Pasechnik to Dima Pasechnik, Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed branch from u/mkoeppe/build/careful_with_C_UTF8 to |
Changed commit from |
In #29033 in
build/bin/sage-spkg
LC_ALL was changed to C.UTF-8However, not all systems have it.
See also:
Follow-up:
CC: @antonio-rojas @mkoeppe @slel @orlitzky @kiwifb @embray @fchapoton
Component: build
Author: Dima Pasechnik, Matthias Koeppe
Branch:
be47518
Reviewer: Matthias Koeppe, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/30053
The text was updated successfully, but these errors were encountered: