pyg_autoscale icon indicating copy to clipboard operation
pyg_autoscale copied to clipboard

AttributeError: 'NoneType' object has no attribute 'origin'

Open skycr4ft opened this issue 3 years ago • 5 comments

Hi @rusty1s, thank you for your great contribution to large-scale graph learning. These days I am facing a problem regarding the configuration of GAS. This issue occurs while importing the GAS library. I've tried many ways, shifting the version of torch, cuda, and torch-sparse, to fix it, but none of them make a difference. So I wanna ask you what can I do with it? issue

skycr4ft avatar Apr 09 '22 11:04 skycr4ft

This has nothing to do with PyTorch or torch-sparse. Are you sure you installed the PyGAS library (there should exist some *.so files inside torch_geometric_autoscale. Otherwise, please run

pip uninstall torch_geometric_autoscale
pip install --verbose .

and report the log.

rusty1s avatar Apr 09 '22 12:04 rusty1s

The library is successfully installed (but I don't find some *.so files in the directory you said), and the problem still exists issue .

skycr4ft avatar Apr 09 '22 16:04 skycr4ft

Ohhh, there are indeed two *.so files, and it looks like these two are causing the problem. so lib

skycr4ft avatar Apr 09 '22 16:04 skycr4ft

Mmh, in case the *.so files exist, importlib should find them as well (in which case find_spec should not return None). Can you do some manual debugging on why these libraries are not found?

rusty1s avatar Apr 09 '22 17:04 rusty1s

Ohhh, there are indeed two *.so files, and it looks like these two are causing the problem. so lib

Hello, have you been able to resolve this issue? I've encountered the same problem as you.

WendyQi-Guo avatar Sep 06 '23 07:09 WendyQi-Guo