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

EOFError: EOF when reading a line #106

Closed eujhwang closed 3 years ago

eujhwang commented 3 years ago

When I run the model on ogbl-citation dataset using GPU clustering, the program asks the following questions when creating PygLinkPropPredDataset:

Will you update the dataset now? (y/N) This will download 2.14GB. Will you proceed? (y/N)

Then ../ogb/linkproppred/dataset_pyg.py produces the following error:

Traceback (most recent call last): ... File "src/dev_ogbl_citation.py", line 149, in _create_dataset root="../data") File "/home/ehwang/miniconda3/envs/ogb/lib/python3.7/site-packages/ogb/linkproppred/dataset_pyg.py", line 54, in init if input('Will you update the dataset now? (y/N)\n').lower() == 'y': EOFError: EOF when reading a line

It is okay when I manually run the model and put "y" for each question. However, this error happens when I run multiple jobs using GPU at the same time. I would appreciate it if anyone can look into this issue.

weihua916 commented 3 years ago

Hi! I am not sure if I understand your issue. Downloading and preprocessing only need to be done once. Once this is finished you can run multiple jobs.

Also, did you upgrade to 1.2.4? ogbl-citation has been deprecated. The new dataset is ogbl-citation2

eujhwang commented 3 years ago

Upgrading ogb package to 1.2.4 resolved the issue. Thank you!