Created
January 29, 2017 19:18
-
-
Save jtemporal/22b050c06939ccc6e9a0c0ab912e5c9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: import serenata_toolbox | |
In [2]: ceap = serenata_toolbox.CEAPDataset('data/') | |
In [3]: ceap.fetch() | |
--------------------------------------------------------------------------- | |
BadZipFile Traceback (most recent call last) | |
<ipython-input-5-04de461fb5d4> in <module>() | |
----> 1 ceap.fetch() | |
/root/anaconda3/envs/serenata_rosie/lib/python3.6/site-packages/serenata_toolbox/ceap_dataset.py in fetch(self) | |
21 zip_file_path = os.path.join(self.path, filename) | |
22 urlretrieve(url, zip_file_path) | |
---> 23 zip_file = ZipFile(zip_file_path, 'r') | |
24 zip_file.extractall(self.path) | |
25 zip_file.close() | |
/root/anaconda3/envs/serenata_rosie/lib/python3.6/zipfile.py in __init__(self, file, mode, compression, allowZip64) | |
1098 try: | |
1099 if mode == 'r': | |
-> 1100 self._RealGetContents() | |
1101 elif mode in ('w', 'x'): | |
1102 # set the modified flag so central directory gets written | |
/root/anaconda3/envs/serenata_rosie/lib/python3.6/zipfile.py in _RealGetContents(self) | |
1165 raise BadZipFile("File is not a zip file") | |
1166 if not endrec: | |
-> 1167 raise BadZipFile("File is not a zip file") | |
1168 if self.debug > 1: | |
1169 print(endrec) | |
BadZipFile: File is not a zip file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment