snap-stanford / deepsnap

Python library assists deep learning on graphs
https://snap.stanford.edu/deepsnap/
MIT License
542 stars 57 forks source link

Illegal instruction (core dumped) #25

Open ntnn19 opened 3 years ago

ntnn19 commented 3 years ago

I installed deepsnap on a remote machine using pip, with the below dependencies first:

PyTorch --> https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html NetworkX --> https://github.com/networkx/networkx

But when I import:

from deepsnap.graph import Graph

I get: Illegal instruction (core dumped)

Thank you!

zechengz commented 3 years ago

Does PyTorch Geometric successfully be installed?

ntnn19 commented 3 years ago

Yes, I verified it today.

zechengz commented 3 years ago

That's a little bit strange. Because DeepSNAP is almost based on PyTorch, PyG and NetworkX, and all other implementations are just pure Python. The kind of error like Illegal instruction (core dumped) is usually caused by PyG or PyTorch. Can you briefly describe your task and send the error log?

ntnn19 commented 3 years ago

I am trying to do inductive node regression using ~200 structurally distinct graphs.

image

ipsitmantri commented 3 years ago

@ntnn19 What versions of Python, Pytorch, PyG and Networkx do you have? I have Python 3.7.10, Pytorch 1.9.0, PyG 2.0.1, and Networkx 2.5.1 and deepsnap 0.2.1 and it is working fine in my case.