You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"IOError: [Errno 12] Not enough space" on Windows 7 and Python 2 #825
This is caused by click/_winconsole.py:268-272. It seems that switching the standard streams to binary mode reveals the underlying limit of the Windows console of limiting a single write to 64K (I think this limit was lifted in Windows 8). This affects print, sys.stdout.write and click.echo.
It seems that many libraries and Python itself limit a single write to 32767 bytes to workaround this. Python 3 for example: Python/fileutils.c:1244-1250. It doesn't seem like Python 2 has this hack though.
We will have to either:
Don't set the streams to binary and read/write to dupped stream fds (and file objects) that are set to binary.
Wrap the standard streams and workaround this.
Submit a patch to Python 2 which I'm not sure will ever be accepted.
changed the title [-]IOError: [Errno 12] Not enough space on Windows 7 and Python 2[/-][+]"IOError: [Errno 12] Not enough space" on Windows 7 and Python 2[/+]on Jul 10, 2017
Activity
[-]IOError: [Errno 12] Not enough space on Windows 7 and Python 2[/-][+]"IOError: [Errno 12] Not enough space" on Windows 7 and Python 2[/+]Wrap stdout/stderr to avoid "Not enough space" in Python 2 on Windows 7
Wrap stdout/stderr to avoid "Not enough space" in Python 2 on Windows 7
Wrap stdout/stderr to avoid "Not enough space" in Python 2 on Windows 7
Wrap stdout/stderr to avoid "Not enough space" in Python 2 on Windows 7
Wrap stdout/stderr to avoid "Not enough space" in Python 2 on Windows 7
Merge #1576
Merge #37
Update click to 7.0 (#97)