Skip to content

run_single_cpu.sh Doesn't work. Deepsnap call is errored. #70

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

Open
OscarRoussel opened this issue Mar 18, 2025 · 1 comment
Open

run_single_cpu.sh Doesn't work. Deepsnap call is errored. #70

OscarRoussel opened this issue Mar 18, 2025 · 1 comment

Comments

@OscarRoussel
Copy link

Hi.

I am trying to run this repo with cpu.

OS/Distro : Ubuntu 22.04
Pytorch version : 2.3.0+cpu (1.8.0 is not longer supported as stable by Pytorch and downloading is made troublesome)
PyG version : https://data.pyg.org/whl/torch-2.3.0+cpu.html
Lightning : 2.4 (base install through pip).

Graphgym displayed version : 0.4.0

Followed install procedure of the README.md apart from using venv instead of conda.

Here is the returned error on bash run_single_cpu.sh call :

Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.tx
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.allx
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.y
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.ty
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.ally
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.graph
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.test.index
Processing...
Done!
Traceback (most recent call last):
  File "/home/oscar/Documents/WORK/internship-2025/GraphGym/run/main.py", line 37, in <module>
    datasets = create_dataset()
  File "/home/oscar/Documents/WORK/internship-2025/GraphGym/graphgym/loader.py", line 223, in create_dataset
    graphs = load_dataset()
  File "/home/oscar/Documents/WORK/internship-2025/GraphGym/graphgym/loader.py", line 109, in load_dataset
    graphs = load_pyg(name, dataset_dir)
  File "/home/oscar/Documents/WORK/internship-2025/GraphGym/graphgym/loader.py", line 72, in load_pyg
    graphs = GraphDataset.pyg_to_graphs(dataset_raw)
  File "/home/oscar/Documents/WORK/internship-2025/venv/lib/python3.10/site-packages/deepsnap/dataset.py", line 1276, in pyg_to_graphs
    return [
  File "/home/oscar/Documents/WORK/internship-2025/venv/lib/python3.10/site-packages/deepsnap/dataset.py", line 1277, in <listcomp>
    Graph.pyg_to_graph(
  File "/home/oscar/Documents/WORK/internship-2025/venv/lib/python3.10/site-packages/deepsnap/graph.py", line 1973, in pyg_to_graph
    kwargs["node_feature"] = data.x if "x" in data.keys else None
TypeError: argument of type 'method' is not iterable

Would appreciate the help.
Thanks.

@OscarRoussel
Copy link
Author

OscarRoussel commented Mar 19, 2025

Duplicate of #68

Change to apply :
PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant