OSError: 269892000 requested and 269188084 written
I got a similar error that apparently results from running out of space on the temporary folder where savez stores files. According to this Numpy bug report, a workaround is to set TMPDIR=/path/to/bigger/drive/tmp
. In my case, the exception was as OSError rather than the IOError reported there, which I presume is from a change in Python 3. Looks like a fix made it to Numpy 1.12.0.
This issue arises when you are reading in data using variations of numpy.load but you don't have enough space in your drive.
The error basically means that numpy is requesting 269892000 but due to space limitations, it was only able to read/save in 269188084.
Free up some space!