New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import issue in ogb #289
Comments
Hi! Thanks for the PR! Could you elaborate on what is the import error? I think people just need to install some prerequisites ( |
these 2 lines are causing import issues: from torch_geometric.data import InMemoryDataset noqa pylint: disable it looks like InMemoryDataset is not actively being used anywhere in the file so it can get converted to object. In addition the below line in init also causes import issue: TODO: The below line causes import issue for "from ogb.graphproppred import PygGraphPropPredDataset" |
Did you install torch-geometric? In order to use PyGGraphPropDataset, you need to have pyg. |
can you successfully do the following?
It's likely that your torch_geometric is not installed properly. |
I see. You need to install torch_sparse correctly. See https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html |
Hi I am able to run I followed the following command to install torch in conda environment:
|
Please see my reply in #322 (comment). |
Did you find any solution for this issue? I'm facing the same issue while importing from ogb.graphproppred. |
I fix this problem by calling |
Import sklearn before also solve my problem. Thanks! @Qitong-Wang ! |
The ogb package can not be imported on console now and will generate errors for the below imports:
import torch
import ogb
from ogb.graphproppred import GraphPropPredDataset
from ogb.graphproppred import PygGraphPropPredDataset
In addition log generation is not implemented in init files. I also noticed that the lines in init that blocks proper import have not yet been used anywhere else in the program so I have a PR to address these issues.
https://github.com/Zahra-Bakhtiari/GraphPropPred_bug_fix/pull/1/files
I also did some google search and noticed that this is a big struggle for the new ogb users, several open issues exist on it :)
The text was updated successfully, but these errors were encountered: