snap-stanford / ogb

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

[SSL: CERTIFICATE_VERIFY_FAILED] #108

Closed underskies00 closed 3 years ago

underskies00 commented 3 years ago

When running

import torch_geometric.transforms as T
from ogb.nodeproppred import PygNodePropPredDataset

dataset_name = 'ogbn-arxiv'
# Load the dataset and transform it to sparse tensor
dataset = PygNodePropPredDataset(name=dataset_name,
                                 transform=T.ToSparseTensor())
print('The {} dataset has {} graph'.format(dataset_name, len(dataset)))

I received the following question:

ogbn-arxiv has been updated.
Will you update the dataset now? (y/N)

then i sent y and received the following error:

SSLCertVerificationError                  Traceback (most recent call last)
/usr/lib/python3.7/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
   1349                 h.request(req.get_method(), req.selector, req.data, headers,
-> 1350                           encode_chunked=req.has_header('Transfer-encoding'))
   1351             except OSError as err: # timeout error

21 frames
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)

During handling of the above exception, another exception occurred:

URLError                                  Traceback (most recent call last)
/usr/lib/python3.7/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
   1350                           encode_chunked=req.has_header('Transfer-encoding'))
   1351             except OSError as err: # timeout error
-> 1352                 raise URLError(err)
   1353             r = h.getresponse()
   1354         except:

URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)>
khulaifi95 commented 3 years ago

Same issue on MacOS Big Sur M1.

underskies00 commented 3 years ago

Hi @weihua916 , I tried other datasets and got the same error.

zyzisastudyreallyhardguy commented 3 years ago

Same here

weihua916 commented 3 years ago

This indeed seems to be an issue. It is related our server. We will check and get back to you.

weihua916 commented 3 years ago

I have just released ogb=1.2.6. Downloading should work now. Please update your package, and let me know if it works. Thanks!

zyzisastudyreallyhardguy commented 3 years ago

it works now thx!

weihua916 commented 3 years ago

Awesome! Closing the issue.

underskies00 commented 3 years ago

It works, thank you