-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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 throws IOError in some scripts in Windows Integrated Terminal #36630
Comments
@jacek-dargiel are you using a python virtual environment? |
Not sure. How can I check? I do have python 2.7 installed locally. |
Hi. |
Docker --version and Docker-Machine --version works as expected. Only Docker-Compose --version is failing in my preliminary test. Hope this helps |
@jacek-dargiel you would probably know if you were using it 🙂 @Ahryman40k @TheWozMSN are you both on Windows? |
@Tyriar |
@Tyriar do I need to install python for docker compose to work in vscode? I got a brand new windows 10 installed running 1709 and I have the same issue |
Further Comment. Docker-Compose works in a regular powershell command window. Not with Integrated Powershell |
Think this might need to be taken up in the docker compose repo. If it is
not already
…On Fri, 27 Oct 2017, 13:15 Doug Woznicki, ***@***.***> wrote:
Further Comment. Docker-Compose works in a regular powershell command
window. Not with Integrated Powershell
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#36630 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABy95AVdqTJHAlAKzcX-5n9ez0L33g_4ks5swbtggaJpZM4QAhER>
.
|
Could anyone look at the bottom of the stacktrace and find out what is making it fail?
It might be something to do with the env? |
Just hit this issue myself.
Last time I used this command was 3 months ago, and it had worked then. Most notable changes are updating to Fall Creators Update (non-Insider), several updates to docker, and several VS Code updates. Everything was up to date the last time it worked, and everything is up to date now. Like the OP, regular PS window works fine. Taking a look at the stack trace, it seems the error propagates from Colorama, a Python terminal colouring library. I'm terrible at Python, so I can't see any obvious reasons for it to be the cause. I've spotted the issue at: Looks like this is a bug in Colorama triggered by unknown circumstances. |
+1 same issue occured! |
+1 same issue |
2 similar comments
+1 same issue |
+1 same issue |
+1 same issue here on Fall Creators Update I can confirm that reverting back to a Windows build prior to Fall Creators Update fixes the issue. |
@miniksa @bitcrazed might be an issue with FCU? |
+1 same issue here on Fall Creators Update and: VSCodeVersion 1.17.2 |
I have a 1607 (10.0.14393 Build 14393) Windows 10 and an Insider Fast Current windows 10. Both with same error. I don't have any Python installed. |
+1 same issue here on Fall Creators Update BUT I am using the integrated terminal of PhpStorm. So it seems not to depend on VSCode. |
+1 same issue here on Fall Creators update too. Dont have python installed on my host too. |
Filed as MSFT:14643897. I'll get to it. |
I had the same issue on Windows 10 Home, I was able to fix it using the Docker Toolbox terminal. |
That's not a "fix", just a workaround. |
Still an issue with version: 1.20.1 of vscode on windows 10 with docker-compose 1.18.0 (screenshot below) But on a positive note I may have discovered a Possible Real Workaround/Solution
The version I'm using that's working so far: docker-compose version 1.20.0dev, build 4ceeaad0 Screenshot of failure with previous stable docker-compose 1.18.0: docker-compose version 1.18.0, build 8dd22a96 |
@bitcrazed , @chrisdias - Are you tracking this as a generic VS Code issue or is this one related only to docker? The reason I ask is because I'm seeing this with any colorizer. Shall I use this issue to track generic colorizer fails or should I open a new issue? Also, do you have an ETA on this fix? Thanks, |
I don't think this is related to docker, as I'm not using it on my machine but I am getting the issue with the integrated terminal. It doesn't seem to happen when I run a separate PowerShell window and run the python script. I should also mention I'm using Anaconda 5.1.0 for python 2.7. When initially opening the integrated terminal, Code seems to be running the following line I should also note that this does not happen when running the file using debug. It runs correctly to the end. |
@jonbgallant as I understand from @Tyriar this is a windows issue, not a VS Code, Docker, or VSCode Docker (extension) issue. |
Yes it's a problem with Windows (see #36630 (comment), #36630 (comment)). With a similar issue in the past I kept it open to make it easier for people to find the issue and not create a stream of duplicates for me to handle. We'll close this off when stable Windows starts getting the fix. |
I was having a similar problem (post patch I assume v. 1.18.0 of Docker Compose), so I came here. In case anyone else has the same issue, I'll leave this for reference. It was a longpaths issue for me due to Jenkins giving the project folder a unique code. I was able to complete my compose using powershell, but Jenkins gave my these errors:
Basically, my copy of the www folder in my compose file failed because the path was too long. I had to enable long paths on the windows server I had docker and jenkins installed on.
All I had to do was follow this: |
I have the same problems but this is not related to:
And this bug happens very often, for example, several times in a row |
I have the same error and all I'm doing is running python code with no modules (also no virtualenv) Windows 10, Python 2.7.14 EDIT: I posted this comment before finding this - https://www.bountysource.com/issues/52206767-random-io-errors-on-windows-10-0-16299-64. Apparently it's a bug in Win 10. |
I was facing the same issues in November 2017 with the Fall Creators Update. I was able to delay this update until today. Now I'm unable to work with VSCode since all my compile and test scripts don't work anymore. I probably have to look for a different editor while this issue is open ;-( I really beg you to fix this issue as soon as possible! I really don't want to abandon my beloved VSCode. My original issue was this: #38068 |
I think it has something to do with print function - I was able to get around it by wrapping my print calls in a try block and then using print() in the except block, like this: // Using python click
I've also had luck putting the futures print at the top of my python script:
|
Same issue here. Same command work in a separate powershell, not in the integrated terminal. |
The issue is still not resolved. Please take a look. Steps: Version 1.21.1 |
@raokrutarth it's an issue in Windows which takes a while to roll out. |
@Tyriar Is there a fix on the way? How can I get it earlier? |
@Wosi it's fixed in the Windows Insiders channel #36630 (comment), you might not want to commit to that just to fix this though. It should be coming in the upcoming Spring release of Windows w |
Appears to be fixed in the latest Windows 10 Spring Creators Update |
@Box-Of-Hats It was fixed on Windows 1803!! I installed it and tested it!! YAY!!! |
🎉 Closing this off as people are confirming it's fixed! If you're experiencing this problem make sure you have installed the Windows 10 April Update (1803). |
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:
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.
(3 theme extensions excluded)
Steps to Reproduce:
Reproduces without extensions: Yes/No
The text was updated successfully, but these errors were encountered: