-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pip broken on python:2-windowsservercore container image #583
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
Comments
I'm able to reproduce, but the encoding in my error message is $ docker pull python:2-windowsservercore
2-windowsservercore: Pulling from library/python
Digest: sha256:2bedbd91529fa5e98354dd53d8f5bec79aba9646e6b25ff25e9b4639a7d5d2f6
Status: Image is up to date for python:2-windowsservercore
docker.io/library/python:2-windowsservercore
$ docker run -it --rm python:2-windowsservercore powershell
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\> pip --version
Traceback (most recent call last):
File "c:\python\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\python\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python\Scripts\pip.exe\__main__.py", line 4, in <module>
File "c:\python\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "c:\python\lib\site-packages\pip\_internal\cli\autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "c:\python\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "c:\python\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 31, in <module>
from pip._internal.utils.ui import BAR_TYPES
File "c:\python\lib\site-packages\pip\_internal\utils\ui.py", line 64, in <module>
_BaseBar = _select_progress_class(IncrementalBar, Bar) # type: Any
File "c:\python\lib\site-packages\pip\_internal\utils\ui.py", line 57, in _select_progress_class
six.text_type().join(characters).encode(encoding)
LookupError: unknown encoding: cp65001 |
Ah, if I set However, Python 2 is unfortunately EOL, so this isn't something we'll be fixing in the published images (which are not going to be updated for any reason). That being said, you might be interested in docker-library/pypy#54. |
set PYTHONIOENCODING to UTF-8 is working do pypy support window image? i was looking for windows image python 2 |
We are working to add |
Uh oh!
There was an error while loading. Please reload this page.
I have pulled python:2-windowsservercore & created a container.
python working fine, however pip is throwing error as given below
No changes made to image and no additional tool installed( its base image from github)
The text was updated successfully, but these errors were encountered: