unzip:  cannot find zipfile directory in one of dogscats.zip

By | March 1, 2018

unzip:  cannot find zipfile directory in one of dogscats.zip

I was going through first lesson on fast.ai. I got stuck while unzipping the file containing dataset. After trying different solutions, like using 7z, jar etc. I finally found the solution!

Error

unzip files error

unzip files error

‘On running the unzip command, I was getting the following error: Archive:  dogscats.zip 

End-of-central-directory signature not found.  Either this file is not a zipfile, or it constitutes one disk of a multi-part archive.  In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.

unzip:  cannot find zipfile directory in one of dogscats.zip or dogscats.zip.zip, and cannot find dogscats.zip.ZIP, period.’

Problem

In my case, the problem was occurring due to corrupt download. I was downloading dataset from the link ‘http://www.platform.ai/data/dogscats.zip’. Perhaps, this link is old and was causing corrupt download.

Solution

Please use the following command to get your dogs vs cats dataset. Check file here: files.fast.ai/data/

and then run;

This works fine!