This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Simon Depiets
Recipients Simon Depiets
Date 2017-12-07.15:21:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512660082.17.0.213398074469.issue32245@psf.upfronthosting.co.za>
In-reply-to
Content
A couple of users have been having issues on console output since the Fall 2017 Creator Update on Windows 10

An OSError is triggered randomly when rewriting data on the console (typically with progress bars, for instance when you install a module with pip), this only happens with the Microsoft Console (within Powershell or cmd.exe).

It seems the windows stdout console stream returns a length double what python expects. I don't have the skills to go deeper than the bufferedio.c method _bufferedwriter_raw_write to diagnostic the issue, so I've made a very dirty fix (which I do not recommend) https://github.com/python/cpython/compare/3.5...LlianeFR:patch-1

Different unrelated use cases where an error is triggered :

https://stackoverflow.com/questions/47356993/oserror-raw-write-returned-invalid-length-when-using-print-in-python

https://github.com/Microsoft/vscode/issues/39149
History
Date User Action Args
2017-12-07 15:21:22Simon Depietssetrecipients: + Simon Depiets
2017-12-07 15:21:22Simon Depietssetmessageid: <1512660082.17.0.213398074469.issue32245@psf.upfronthosting.co.za>
2017-12-07 15:21:22Simon Depietslinkissue32245 messages
2017-12-07 15:21:21Simon Depietscreate