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.