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

version check makes "from ogb.xxx import xxx" get stuck #346

Closed llan-ml closed 1 year ago

llan-ml commented 1 year ago

@weihua916 @rusty1s The version check in version.py makes from ogb.xxx import xxx get stuck.

With those code:

❯ ipython
Python 3.9.12 (main, Apr  5 2022, 06:56:58)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from ogb.graphproppred import GraphPropPredDataset

The program is just waiting.

Without those code:

❯ ipython
Python 3.9.12 (main, Apr  5 2022, 06:56:58)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from ogb.graphproppred import GraphPropPredDataset

In [2]: 
llan-ml commented 1 year ago

A quick workaround is to uninstall outdated after ogb is installed.

jiaqingxie commented 1 year ago

Thank you. It really helps a lot.