pytorch_scatter icon indicating copy to clipboard operation
pytorch_scatter copied to clipboard

'NoneType' object has no attribute 'origin'

Open bruno686 opened this issue 3 years ago • 3 comments
trafficstars

hello, when I used torch_scatter, I suffered from this problem below. `Traceback (most recent call last): File "/home/bruno/anaconda3/envs/tf/lib/python3.7/site-packages/torch_scatter/init.py", line 14, in f'{library}_{suffix}', [osp.dirname(file)]).origin) AttributeError: 'NoneType' object has no attribute 'origin'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/bruno/文档/RGCN/main.py", line 7, in from utils import load_data, generate_sampled_graph_and_labels, build_test_graph, calc_mrr File "/home/bruno/文档/RGCN/utils.py", line 7, in from torch_scatter import scatter_add File "/home/bruno/anaconda3/envs/tf/lib/python3.7/site-packages/torch_scatter/init.py", line 17, in raise AttributeError(e) AttributeError: 'NoneType' object has no attribute 'origin'`

the packages version: torch 1.7.1 torch-geometric 1.7.0 torch-scatter 2.0.6 torch-sparse 0.6.9

Thanks!

bruno686 avatar Jun 29 '22 16:06 bruno686

Can you share some insights on how to installed torch-scatter? It looks like there was an installation issue. You should be able to install it

pip install torch-scatter==2.0.6 -f https://data.pyg.org/whl/torch-1.7.1+cpu.html

rusty1s avatar Jun 29 '22 18:06 rusty1s

I just install it by pip, pip install torch_scatter==2.0.6. However, when I used your introduction, the problem still exists.

bruno686 avatar Jun 30 '22 02:06 bruno686

Can you first uninstall the package before re-installing? Can you show me the output log of installation?

rusty1s avatar Jun 30 '22 03:06 rusty1s

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

github-actions[bot] avatar Dec 28 '22 01:12 github-actions[bot]