79348031

Date: 2025-01-11 12:11:40
Score: 0.5
Natty:
Report link

Same error on Google Colab.

Code:

!pip install extra-keras-datasets from extra_keras_datasets import emnist (input_train, target_train), (input_test, target_test) = emnist.load_data(type='mnist')

Error:

Downloading data from http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/matlab.zip
109889/109889 ━━━━━━━━━━━━━━━━━━━━ 0s 2us/step
---------------------------------------------------------------------------
BadZipFile                                Traceback (most recent call last)
 in ()
      1 from extra_keras_datasets import emnist
----> 2 (input_train, target_train), (input_test, target_test) = emnist.load_data(type='mnist')

2 frames
/usr/lib/python3.10/zipfile.py in _RealGetContents(self)
   1337             raise BadZipFile("File is not a zip file")
   1338         if not endrec:
-> 1339             raise BadZipFile("File is not a zip file")
   1340         if self.debug > 1:
   1341             print(endrec)

BadZipFile: File is not a zip file

This does not help !rm ~/.keras/datasets/*

Even !wget http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/matlab.zip !unzip matlab.zip

Produce error:

Archive: matlab.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 matlab.zip or matlab.zip.zip, and cannot find matlab.zip.ZIP, period.

Reasons:
  • RegEx Blacklisted phrase (1): Same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): ━━━━━━━━━━━━━━━━━━━━
  • Filler text (0): ---------------------------------------------------------------------------
  • Low reputation (0.5):
Posted by: KęstutisV