Skip to content
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

cannot import name 'GraphGymDataModule' from 'torch_geometric.graphgym.loader' #4829

Closed
NotTodayNotMe opened this issue Jun 20, 2022 · 3 comments · Fixed by #4843
Closed
Labels

Comments

@NotTodayNotMe
Copy link

🐛 Describe the bug

When trying to run the basic graphgym example with "bash run_single.sh ", I get the following error:
Traceback (most recent call last): File "/home/siqing/pytorch_geometric/graphgym/main.py", line 16, in <module> from torch_geometric.graphgym.loader import GraphGymDataModule ImportError: cannot import name 'GraphGymDataModule' from 'torch_geometric.graphgym.loader' (/home/siqing/anaconda3/lib/python3.9/site-packages/torch_geometric/graphgym/loader.py) Traceback (most recent call last): File "/home/siqing/pytorch_geometric/graphgym/main.py", line 16, in <module> from torch_geometric.graphgym.loader import GraphGymDataModule ImportError: cannot import name 'GraphGymDataModule' from 'torch_geometric.graphgym.loader' (/home/siqing/anaconda3/lib/python3.9/site-packages/torch_geometric/graphgym/loader.py) Traceback (most recent call last): File "/home/siqing/pytorch_geometric/graphgym/main.py", line 16, in <module> from torch_geometric.graphgym.loader import GraphGymDataModule ImportError: cannot import name 'GraphGymDataModule' from 'torch_geometric.graphgym.loader' (/home/siqing/anaconda3/lib/python3.9/site-packages/torch_geometric/graphgym/loader.py)
Before I get there, I followed the methods in this issue :https://github.com/pyg-team/pytorch_geometric/issues/4367 to fix the bug 'ImportError: cannot import name 'set_out_dir' from 'torch_geometric.graphgym.config'. However, here comes a new one.

Environment

@rusty1s
Copy link
Member

rusty1s commented Jun 21, 2022

Please install PyG from master or checkout the 2.0.4 tag:

cd /home/siqing/pytorch_geometric/
git checkout 2.0.4

We recently did some changes to GraphGym in recent commits.

@rusty1s rusty1s added question and removed bug labels Jun 21, 2022
@NotTodayNotMe
Copy link
Author

I have already installed PyG from master before I encounter this error.

@rusty1s rusty1s linked a pull request Jun 22, 2022 that will close this issue
@rusty1s
Copy link
Member

rusty1s commented Jun 22, 2022

Thanks for confirming. There was indeed a bug which is now fixed, see #4843. Thank you!

@rusty1s rusty1s closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants