Skip to content

running docker-compose from Powershell terminal yields python error "unknown encoding: cp65001" #30350

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

Closed
MaurGi opened this issue Jul 10, 2017 · 6 comments
Assignees
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label

Comments

@MaurGi
Copy link

MaurGi commented Jul 10, 2017

  • VSCode Version: 1.13.1
  • OS Version: Windows 10 Enterprise 1703

Steps to Reproduce:

  1. Install Docker for Windows
  2. run docker-compose from the integrated powershell console, you see the following:
PS C:\...> docker-compose -f .\docker-compose\sre-datahub-storm.yaml up
Traceback (most recent call last):
  File "logging\__init__.py", line 872, in emit
  File "site-packages\colorama\ansitowin32.py", line 40, in write
  File "site-packages\colorama\ansitowin32.py", line 141, in write
  File "site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
LookupError: unknown encoding: cp65001
Logged from file service.py, line 488
Traceback (most recent call last):
  File "logging\__init__.py", line 872, in emit
  File "site-packages\colorama\ansitowin32.py", line 40, in write
  File "site-packages\colorama\ansitowin32.py", line 141, in write
  File "site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
LookupError: unknown encoding: cp65001
Logged from file service.py, line 488
Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\main.py", line 68, in main
  File "compose\cli\main.py", line 118, in perform_command
  File "compose\cli\main.py", line 941, in up
  File "site-packages\colorama\ansitowin32.py", line 40, in write
  File "site-packages\colorama\ansitowin32.py", line 141, in write
  File "site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
LookupError: unknown encoding: cp65001
Failed to execute script docker-compose

Reproduces without extensions: Yes/No - unsure

@chrmarti
Copy link
Collaborator

Does this work when run from a Powershell terminal? It does not look like a VSCode problem. Maybe microsoft/WSL#2009 ?

@chrmarti chrmarti self-assigned this Jul 11, 2017
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jul 11, 2017
@MaurGi
Copy link
Author

MaurGi commented Jul 11, 2017 via email

@chrmarti
Copy link
Collaborator

Current versions of Python should know cp65001 from what I read. Please make sure you are running the latest version of docker-compose. @Tyriar Are we setting the pty's encoding ourselves?

@chrmarti chrmarti added the terminal General terminal issues that don't fall under another label label Jul 11, 2017
@chrmarti chrmarti assigned Tyriar and unassigned chrmarti Jul 11, 2017
@Tyriar
Copy link
Member

Tyriar commented Jul 11, 2017

This seems similar to some of the comments in #19665 which should have been fixed with a Windows update. @MaurGi are you up to date on Windows, specifically you need to have installed the KB4020102 fix.

@vscodebot vscodebot bot closed this as completed Jul 18, 2017
@vscodebot
Copy link

vscodebot bot commented Jul 18, 2017

This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.

@DirtyJerz
Copy link

This is still happening.

Version 1.17.2
Commit b813d12
Date 2017-10-16T13:59:46.104Z
Shell 1.7.7
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

w10 pro
1709 Build 16299.15

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

4 participants