There was a problem compiling the code from your notebook. Details: [Errno 2] No such file or directory: '/tmp/happy-sad.zip'

I got: "There was a problem compiling the code from your notebook. Details: [Errno 2] No such file or directory: ‘/tmp/happy-or-sad.zip’. "

The thing created by !wget --no-check-certificate
https://storage.googleapis.com/laurencemoroney-blog.appspot.com/happy-or-sad.zip
-O “/tmp/happy-or-sad.zip”
zip_ref = zipfile.ZipFile("/tmp/happy-or-sad.zip", ‘r’)

How could it be invisible?
May I got your suggestions?

1 Like

Are you sure you have not deleted abything from the code. The code should look like below:

zip_ref = zipfile.ZipFile("/content/drive/My Drive/ML/DataSet.zip", 'r')
zip_ref.extractall("/tmp")
zip_ref.close()

If you havent deleted anything maybe a rerun should help.

Why this does not work for grading? I can run it, it gives results…

Please, respond for my question. I need just a little help.

Can you extract the folder which was the original question, maybe you are not implementing the data generator properly. Have a look on this link Flow from directory it could help you to implement it properly.