This error while downloading datasets: ValueError: I/O operation on closed file
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island Looping
--
Chapters
00:00 Question
01:21 Accepted answer (Score 18)
01:58 Thank you
--
Full question
https://stackoverflow.com/questions/3680...
Question links:
http://www.cs.toronto.edu/~kriz/cifar-10...
Accepted answer links:
[file]: http://www.cs.toronto.edu/~kriz/cifar-10...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #dataset #theano #keras
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island Looping
--
Chapters
00:00 Question
01:21 Accepted answer (Score 18)
01:58 Thank you
--
Full question
https://stackoverflow.com/questions/3680...
Question links:
http://www.cs.toronto.edu/~kriz/cifar-10...
Accepted answer links:
[file]: http://www.cs.toronto.edu/~kriz/cifar-10...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #dataset #theano #keras
#avk47
ACCEPTED ANSWER
Score 18
I tried your exact code and it works fine on my computer. The failure could be due to several reasons, like a unstable internet connection or not enough free space in your home folder.
What you can do is to download the file manually using a download manager, put it in ~/.keras/datasets and rename it to cifar-10-batches-py.tar.gz and run the code again, it should pick up the file and continue processing from there.