- Notifications
You must be signed in to change notification settings - Fork 1.1k
Removing LANG env var from 3.10-rc and templates#570
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
tianon commented Jan 8, 2021
Unfortunately this won't work as-is (post-merge we'll have @docker-library-bot immediately apply the template change across all image variants/versions), but this is really interesting! From my reading of that issue, it sounds like it's been unnecessary since Python 3.7? 😲 (It's too bad 3.6 isn't quite EOL yet or this would be really easy for us to remove! 😄) |
henryh9n commented Jan 9, 2021
Yeah as far as I can see it is obsolete for at least version 3.7 (there are some discussions for earlier versions, but I'm not sure :)) So what should we do? Will changing only for 3.10-rc work? (ofc later removing it in templates) or should we wait for 3.6's end of the life? |
edmorley commented Mar 30, 2022
Hi! Now that Python 3.6 is EOL, is this worth reconsidering? :-) |
henryh9n commented Apr 12, 2022
henryh9n commented Apr 13, 2022
tianon commented Apr 13, 2022
Yes, thank you! Was waiting for the checks but hadn't gotten back to it yet. 🙏 |
Changes: - docker-library/python@0b9aee9: Removing LANG env var (docker-library/python#570) - docker-library/python@d298086: Merge pull request docker-library/python#716 from edmorley/remove-with-system-ffi - docker-library/python@028012a: Remove redundant `--with-system-ffi` configure option - docker-library/python@1999778: Restore /usr/local/bin/python as a relative symlink to /usr/local/bin/python3, rather than an absolute one (docker-library/python#714)
gritvald commented Apr 15, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
We are using python:3.9-slim-buster in our projects and after switched to After switching back to @henryh9n Let me know if you need some more info. |
sagata1999 commented Apr 15, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
python:3.8 either falls apart to UnicodeEncodeErrors in cause of 'ascii' not knowing about utf-8 characters (anyway I'm thinking so). But, when we settled up |
tianon commented Apr 15, 2022 via email
Can we come up with a tiny reproducer? 😇 |
mauriziomocci commented Apr 15, 2022
grapo commented Apr 15, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
In our case there is a problem with uWSGI when using latest python:3.9-slim-buster We place If encoding is set to Currently I have no idea why uwsgi don't use system locale |
lambda commented Apr 15, 2022
We ran into issues after updating as well; scripts which use Click will refuse to run without a Unicode locale. Changing the locale like this has some pretty wide-ranging effects, I think it would be better to revert this change and leave the locale as |
lambda commented Apr 15, 2022
Huh. An attempt to create a minimal example of the failure using Click is not showing the issue. I may need to dig a bit to figure out a minimal set of steps to reproduce. |
drzraf commented Apr 17, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
This update broke all my CI, not only because it changed the basic behavior of Ex:
And consequently:
I highly suggest to roll this back thinking about all the current containers breaking in strange ways without any clear and easily identifiable reason. |
martin-thoma commented Apr 19, 2022
This also broke my CI. I don't completely grasp it, but opening files with German umlauts in the path doesn't work anymore: suddenly gives
|
tianon commented Apr 19, 2022
Reverted via #719 😞 🙈 |
Changes: - docker-library/python@1cf43e7: Merge pull request docker-library/python#719 from docker-library/revert-570-lang_env_removed - docker-library/python@f871d04: Revert "Removing LANG env var (docker-library/python#570)"
edmorley commented Apr 29, 2022
@MT-Cash I don't suppose you have some more details? (Just to help anyone in the future trying to work out when it's finally safe to remove I can't reproduce your exception using any of: |
edmorley commented Apr 29, 2022
@drzraf I can reproduce the failure in your post. However, some observations:
|
edmorley commented Apr 29, 2022
Whilst #719 resolved this issue (by reverting the python/Dockerfile-linux.template Lines 22 to 24 in 1cf43e7
It feels like figuring out what broke here, reporting it upstream if appropriate (given the bugs PEPs I've seen seem to suggest this should be resolved already?), and updating the code comment to indicate why |
This reverts commit 0b9aee9.
Since
ENV LANG C.UTF-8is apparently no longer necessary, removed those from 3.10-rc and templates not to cause confusion.