snap-stanford / ogb

Benchmark datasets, data loaders, and evaluators for graph machine learning
https://ogb.stanford.edu
MIT License
1.89k stars 397 forks source link

unzipping wikikg90m-v2 doesn't work #390

Closed daniel-unyi-42 closed 1 year ago

daniel-unyi-42 commented 1 year ago

Hi,

the script successfully downloads the zip file, but it produces an error while trying to unzip it:

from ogb.lsc import WikiKG90Mv2Dataset dataset = WikiKG90Mv2Dataset(root = '/mnt/data2/ogb-lsc') This will download 88.24GB. Will you proceed? (y/N) y Using exist file wikikg90m-v2.zip Extracting /mnt/data2/ogb-lsc/wikikg90m-v2.zip Traceback (most recent call last): File "", line 1, in File "/opt/conda/lib/python3.7/site-packages/ogb/lsc/wikikg90mv2.py", line 37, in init self.download() File "/opt/conda/lib/python3.7/site-packages/ogb/lsc/wikikg90mv2.py", line 60, in download extract_zip(path, self.original_root) File "/opt/conda/lib/python3.7/site-packages/ogb/utils/url.py", line 87, in extract_zip with zipfile.ZipFile(path, 'r') as f: File "/opt/conda/lib/python3.7/zipfile.py", line 1258, in init self._RealGetContents() File "/opt/conda/lib/python3.7/zipfile.py", line 1325, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file

Would you mind to check this?

Thank you, Daniel

weihua916 commented 1 year ago

It's likely because your downloaded file is corrupted. I suggested you delete the zip file and run your script again to re-download.

daniel-unyi-42 commented 1 year ago

Thanks, it solved my problem.