File is not a zip file

When I run this block of code:

# uncomment the next 2 lines if you want to delete an existing zip and training directory

# !rm training-zombie.zip

# !rm -rf ./training

# download the images

!wget --no-check-certificate \

https://storage.googleapis.com/laurencemoroney-blog.appspot.com/training-zombie.zip \

-O ./training-zombie.zip

# unzip to a local directory

local_zip = './training-zombie.zip'

zip_ref = zipfile.ZipFile(local_zip, 'r')

zip_ref.extractall('./training')

zip_ref.close()

I get this error:

–2023-01-09 21:21:01-- https://storage.googleapis.com/laurencemoroney-blog.appspot.com/training-zombie.zip
Resolving storage.googleapis.com (storage.googleapis.com)… 172.253.63.128, 142.250.31.128, 142.251.111.128, …
Connecting to storage.googleapis.com (storage.googleapis.com)|172.253.63.128|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2023-01-09 21:21:01 ERROR 404: Not Found.


BadZipFile Traceback (most recent call last)
in
8 # unzip to a local directory
9 local_zip = ā€˜./training-zombie.zip’
—> 10 zip_ref = zipfile.ZipFile(local_zip, ā€˜r’)
11 zip_ref.extractall(ā€˜./training’)
12 zip_ref.close()

1 frames
/usr/lib/python3.8/zipfile.py in _RealGetContents(self)
1334 raise BadZipFile(ā€œFile is not a zip fileā€)
1335 if not endrec:
→ 1336 raise BadZipFile(ā€œFile is not a zip fileā€)
1337 if self.debug > 1:
1338 print(endrec)

BadZipFile: File is not a zip file

Uh oh! I’m seeing the same problem. I’ll reach out to staff to see why this file seems to be missing now.

It’s not just this file, it looks like Laurence’s whole bucket/project is gone:

For example, these files are needed for the NLP course(s):
https://storage.googleapis.com/laurencemoroney-blog.appspot.com/sarcasm.json
https://storage.googleapis.com/laurencemoroney-blog.appspot.com/bbc-text.csv
https://storage.googleapis.com/laurencemoroney-blog.appspot.com/sonnets.txt

and they all also return 404

1 Like

Hi everyone! Thank you for reporting! We have escalated this issue so it can be fixed asap. Please monitor this thread for updates. Sorry for the inconvenience!

1 Like

@chris.favila In Generative Deep Learning with TensorFlow
I’m trying to work on a Programming Assignment: Style Transfer Dog
https://storage.googleapis.com/laurencemoroney-blog.appspot.com/MLColabImages/dog1.jpg
not work on colab
And I think most of the download links in all Assignments don’t work also
Therefore, when executing a run code, it does not work that what I get
Exception: URL fetch failure on https://storage.googleapis.com/laurencemoroney-blog.appspot.com/MLColabImages/dog1.jpg: 404 – Not Found I don’t know where the problem is

also
https://storage.googleapis.com/laurencemoroney-blog.appspot.com/Resources/anime-faces.zip
in week 3 not work

https://storage.googleapis.com/laurencemoroney-blog.appspot.com/Resources/signs-training.zip
in week 4 not work

So the code is not working because the link is not working
Am I doing something wrong?? Or is it really not working

Hi Mohamed! You’re not doing anything wrong. It seems the GCP bucket hosting those datasets is down and we’ve already reported it. When it goes back up, we’ll add another step to avoid this from happening in the future.

2 Likes

@chris.favila Thank you very much for the clarification and quick reply. Please, when it return to work, I hope to be informed I will flow this post to know if it work again so that I can complete the Assignment .

Yes, we will update this post as soon as it is fixed. Thanks!

2 Likes

Is there an ETA for this recovery?

T.

1 Like

Cannot finish certification because of this issue. I have completed all activities in course. 2 assignments pending. Unable to do it because of this issue. Will I get an extension in my subscription just 1 day post this issue is fixed

Also encountering issues here

data_url = ā€œhttps://storage.googleapis.com/laurencemoroney-blog.appspot.com/Resources/anime-faces.zipā€

Thank you very much, I just logged into this forum to report the same issue and you’ve beaten me to it. Oh well, will just have to wait.

1 Like

I reported a problem a whole day ago, and it was not fixed, and therefore I cannot perform the required Assignment and stopped completely. It seems that the solution to the problem will not be soon, and it may take weeks to solve it
There is Deadline for the first Assignment Pass this assignment by Jan 15, 11:59 PM EET Because the problem has not been resolved, Please extend the time to all Assignments There are only four days left To offer a solution Because of this problem, I can’t provide any solution Please extend the time and make it open until this problem is over and I don’t think it will resolve quickly

1 Like

ugh, that s*cks, i hope they do extend the deadlines of our submission as time is running out.

1 Like

Hi everyone! We’ll be able to host some of the affected datasets today. We just have to do some checks. I’ll update this topic within the next 12 hours with more details. Really sorry for this mishap and we’ll make sure to avoid this from happening in the future.

3 Likes

Thank you, looking forward for favorable news.

Hello again! The datasets should now be available for the following labs (EDIT: Please re-open these from the classroom to see the updated download links):

Course 3:

  • C3W3_Assignment.ipynb
  • C3_W4_Lab_2_CatsDogs-CAM.ipynb
  • C3W4_Assignment.ipynb

Course 4:

  • C4W1_Assignment.ipynb
  • C4W3_Assignment.ipynb
  • C4W4_Assignment.ipynb

I will update this topic again regarding the status of these labs. Right now, the datasets have not been transferred yet:

  • Course 3
    • C3W2_Assignment.ipynb
  • Course 4
    • C4_W4_Lab_3_CelebA_GAN_Experiments_(DCGAN,_DRAGAN).ipynb

Ā 

If there is a dataset missing for another lab that is not mentioned here, please let us know. Thank you!

marking this as the solution for visibility

4 Likes

both c4w1 and c4w4 are not working for me yet

Hi Krishna. Sorry forgot to mention. Please relaunch the notebook from your classroom to see the new links. Thanks!

Thanks for the update, ya they work now… thanks

1 Like

Thank you very much for fixing part of the problem but as you said
In Generative Deep Learning with TensorFlow C4W3_Assignment.ipynb
Programming Assignment: Anime Faces
still have same problem But of course, thanks for solving part of the problem