schelotto / Neural_Speed_Reading_via_Skim-RNN_PyTorch

PyTorch implementation of "Neural Speed Reading via Skim-RNN"
MIT License
18 stars 9 forks source link

Traceback zipfile.BadZipFile: File is not a zip file #3

Closed susht3 closed 6 years ago

susht3 commented 6 years ago

when i run main.py, sometimes i can load the embedding ".vector_cache/glove.840B.300d.zip",but sometimes i got this error:

Loading data... Traceback (most recent call last): File "main.py", line 62, in train_iter, test_iter = load_data(text_field, label_field, device=-1, repeat=False) File "main.py", line 48, in load_data text_field.build_vocab(train_data, vectors=GloVe()), File "/data1/local/anaconda3/lib/python3.5/site-packages/torchtext/vocab.py", line 330, in init super(GloVe, self).init(name, url=url, **kwargs) File "/data1/local/anaconda3/lib/python3.5/site-packages/torchtext/vocab.py", line 223, in init self.cache(name, cache, url=url) File "/data1/local/anaconda3/lib/python3.5/site-packages/torchtext/vocab.py", line 251, in cache with zipfile.ZipFile(dest, "r") as zf: File "/data1/local/anaconda3/lib/python3.5/zipfile.py", line 1026, in init self._RealGetContents() File "/data1/local/anaconda3/lib/python3.5/zipfile.py", line 1093, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file

but my anaconda is work well, i don't know why

schelotto commented 6 years ago

Your zip file is cracked. Delete it and try to download again.