Assignment Trouble

Hello. I am getting this error message. Can you please comment or give me any hint?

Thanks, Anthony

–2022-06-12 07:49:28--
Resolving (…, 2a02:26f0:fe00:484::e59, 2a02:26f0:fe00:4a2::e59
Connecting to (||:443… connected.
Unable to establish SSL connection.
BadZipFile Traceback (most recent call last)
in ()
** 7 **
** 8 local_zip = ‘/tmp/’**
----> 9 zip_ref = zipfile.ZipFile(local_zip, ‘r’)
** 10 zip_ref.extractall(’/tmp’)**
** 11 zip_ref.close()**

1 frames
/usr/lib/python3.7/ 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
# 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, 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--
Resolving (…, 2a02:26f0:fe00:485::e59, 2a02:26f0:fe00:484::e59
Connecting to (||:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 824887076 (787M) [application/octet-stream]
Saving to: ‘/tmp/’

/tmp/cats-and-dogs. 100%[===================>] 786.67M 143MB/s in 5.7s

2022-06-12 09:13:47 (137 MB/s) - ‘/tmp/’ 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.