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

When ogb is improted into the program, the program does not exit properly #424

Open qizou97 opened 1 year ago

qizou97 commented 1 year ago

Minimum reproducible program: import ogb print(ogb.__version__)

Problem Cause: I tried to use from ogb.graphproppred import PygGraphPropPredDataset in my project and found that the program does not exit properly. I tried a simple test program, similar to the code in the minimally reproducible problem, and found that referencing ogb triggered the problem of the program not exiting properly.

I tried copying the relevant implementation from ogb locally and referencing it from a local package and found that the local package does not cause this problem. The only difference between the local and ogb implementations is that there is no if __name__ == '__main__' added to the code.

weihua916 commented 1 year ago

Hi! Thanks for reporting. Could you tell us a bit more about your environment? I cannot reproduce your issue. I can run import ogb; print(ogb.__version__) without any problem.

qizou97 commented 1 year ago

Python version 3.10.0, ogb version 1.3.5, Ubuntu 20.04.6 LTS.