Skip to content

ImportError #10

@AyanMaity435601

Description

@AyanMaity435601

Traceback (most recent call last):
File "/home/money_heist_435601/Downloads/graphmatch_clone-master/run_java.py", line 15, in
import models
File "/home/money_heist_435601/Downloads/graphmatch_clone-master/models.py", line 6, in
from torch_geometric.utils import degree, remove_self_loops, add_self_loops, softmax,scatter_
ImportError: cannot import name 'scatter_' from 'torch_geometric.utils' (/home/money_heist_435601/.local/lib/python3.10/site-packages/torch_geometric/utils/init.py)

i was trying to compile python3 run_java.py..... But it is showing ImportError
ChatGPT gave that "the error you’re encountering suggests that scatter_ is not available in the torch_geometric.utils module. This could be due to an outdated version of PyTorch Geometric or a change in the library’s API."
Can you please help me to execute this?
Thank You in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions