Hello. I am getting this error message. Can you please comment or give me any hint?
Thanks, Anthony
–2022-06-12 07:49:28-- https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_5340.zip
Resolving download.microsoft.com (download.microsoft.com)… 104.81.140.145, 2a02:26f0:fe00:484::e59, 2a02:26f0:fe00:4a2::e59
Connecting to download.microsoft.com (download.microsoft.com)|104.81.140.145|:443… connected.
Unable to establish SSL connection.
---------------------------------------------------------------------------
BadZipFile Traceback (most recent call last)
in ()
** 7 **
** 8 local_zip = ‘/tmp/cats-and-dogs.zip’**
----> 9 zip_ref = zipfile.ZipFile(local_zip, ‘r’)
** 10 zip_ref.extractall(’/tmp’)**
** 11 zip_ref.close()**
1 frames
/usr/lib/python3.7/zipfile.py in _RealGetContents(self)
** 1323 raise BadZipFile(“File is not a zip file”)**
** 1324 if not endrec:**
→ 1325 raise BadZipFile(“File is not a zip file”)
** 1326 if self.debug > 1:**
** 1327 print(endrec)**
BadZipFile: File is not a zip file
Did you read this comment?
# If the URL doesn't work, visit https://www.microsoft.com/en-us/download/confirmation.aspx?id=54765
# And right click on the 'Download Manually' link to get a new URL to the dataset
Yes I downloaded it from it. When I visited the website https://www.microsoft.com/en-us/download/confirmation.aspx?id=54765, it automatically started to download. I extracted the images to my local disk as shown below. I still got the error. What went wrong? Please let me know.
The zip file contains pet images. These should be extracted to /tmp
.
Since you have a windows machine, fix all paths starting with /tmp/
to C:/Temp/
or do this lab on google colab.
The final submission should have paths that are be linux friendly to make the grader happy.
I am doing it in google collab. It got downloaded ok.
Please see below the message of “image files saved ok”.
Why is it still giving out an error later? “files not found”
–2022-06-12 09:13:41-- https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_5340.zip
Resolving download.microsoft.com (download.microsoft.com)… 184.31.224.113, 2a02:26f0:fe00:485::e59, 2a02:26f0:fe00:484::e59
Connecting to download.microsoft.com (download.microsoft.com)|184.31.224.113|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 824887076 (787M) [application/octet-stream]
Saving to: ‘/tmp/cats-and-dogs.zip’
/tmp/cats-and-dogs. 100%[===================>] 786.67M 143MB/s in 5.7s
2022-06-12 09:13:47 (137 MB/s) - ‘/tmp/cats-and-dogs.zip’ saved [824887076/824887076]
As highlighted in response to your direct message, create_train_val_dirs
should be coded to create the directories.
Please provide a link to your colab notebook via a direct message if you need more help.