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

ogb download dataset TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #453

Closed LukeLIN-web closed 12 months ago

LukeLIN-web commented 1 year ago

https://github.com/dmlc/dgl/blob/40dcc7152d930a8761b84d9ed2041a32fa06972c/examples/pytorch/graphsage/node_classification.py#L181

dataset = AsNodePredDataset(DglNodePropPredDataset("ogbn-products"))

File "/opt/conda/lib/python3.7/site-packages/ogb/nodeproppred/dataset_dgl.py", line 69, in init self.pre_process() File "/opt/conda/lib/python3.7/site-packages/ogb/nodeproppred/dataset_dgl.py", line 98, in pre_process if decide_download(url): File "/opt/conda/lib/python3.7/site-packages/ogb/utils/url.py", line 13, in decide_download size = int(d.info()["Content-Length"])/GBFACTOR TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Maybe it is because URL fail, let's wait until 4th July

jayeshchoudhari commented 1 year ago

I am getting a similar error and suspect the url failure as I tried both the loaders PygGraphPropPredDataset and GraphPropPredDataset as well specifically for the "ogbg-molhiv" dataset. What is it about 4th July? And is there any other way to download the dataset?

LukeLIN-web commented 1 year ago

I am getting a similar error and suspect the url failure as I tried both the loaders PygGraphPropPredDataset and GraphPropPredDataset as well specifically for the "ogbg-molhiv" dataset. What is it about 4th July? And is there any other way to download the dataset?

https://github.com/snap-stanford/ogb/issues/452#issuecomment-1608233455