Skip to content

Python throws IOError in some scripts in Windows Integrated Terminal #36630

@jacek-dargiel

Description

@jacek-dargiel

Running docker-compose commands fails when running from the integrated powershell terminal. Running same commands in the standalone powershell terminal works fine. Here's the failing message:

> docker-compose -f .\docker-compose.dev.yml pull

Pulling redis (redis:latest)...
latest: Pulling from library/redis
d13d02fa248d: Downloading [===>                                               ]  1.867MB/30.11MB
a1846f364e39: Download complete
dba901efed8c: Download complete
Traceback (most recent call last):
  File "docker-compose", line 6, in <module>
  File "compose\cli\main.py", line 68, in main
  File "compose\cli\main.py", line 121, in perform_command
  File "compose\cli\main.py", line 653, in pull
  File "compose\project.py", line 512, in pull
  File "compose\service.py", line 1031, in pull
  File "compose\progress_stream.py", line 44, in stream_output
  File "compose\progress_stream.py", line 63, in print_output_event
  File "codecs.py", line 370, in write
  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
IOError: [Errno 0] Error
Failed to execute script docker-compose

This looks like another instance of this issue - that one was reported to the docker repo, but the reporter does note that this only happens in the VS Code integrated terminal.

Also, please note, that I didn't have this problem up until today when I've installed the Fall Creators Update to Windows.


  • VSCode Version: Code 1.17.2 (b813d12, 2017-10-16T13:59:46.104Z)
  • OS Version: Windows_NT x64 10.0.16299
  • Extensions:
Extension Author (truncated) Version
ng-template Ang 0.1.7
htmltagwrap bra 0.0.3
jshint dba 0.10.15
vscode-eslint dba 1.3.2
EditorConfig Edi 0.11.0
js-is-jsx eg2 0.0.1
tslint eg2 1.0.11
vscode-guid hea 1.2.0
path-autocomplete ion 1.6.1
vscode-github Kni 0.22.0
graphql-for-vscode kum 1.6.2
Angular-BeastCode Mik 5.0.8
HTMLHint mka 0.4.0
azure-account ms- 0.1.3
debugger-for-chrome msj 3.4.0
angular2-inline nat 0.0.17
createGUID nwa 0.0.2
vscode-docker Pet 0.0.20
ejs-language-support Qas 0.0.1
vscode-icons rob 7.15.0
stylelint shi 0.30.0
Align ste 0.2.0
jsx-snippets Twe 0.0.1
gitblame wad 2.2.0
twig wha 1.0.2
jinja who 0.0.8
change-case wma 1.0.0

(3 theme extensions excluded)


Steps to Reproduce:

Reproduces without extensions: Yes/No

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another labelupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions