divelab / DIG

A library for graph deep learning research
https://diveintographs.readthedocs.io/
GNU General Public License v3.0
1.86k stars 281 forks source link

About torch-geometric version #165

Closed orientalCherry841 closed 1 year ago

orientalCherry841 commented 1 year ago

When I used the torch-geometric2.1.0, I meet such an error: ModuleNotFoundError: No module named 'torch_geometric.nn.acts' Then, I did find thah there are really no acts in this version. Next, I download torch-geometric2.0.4, the previous error is gone. But, I meet a new error: AttributeError: Can't get attribute 'DataEdgeAttr' on <module 'torch_geometric.data.data' from '/home/cuisx/anaconda3/envs/pytorch2_copy/lib/python3.8/site-packages/torch_geometric-2.0.4-py3.8.egg/torch_geometric/data/data.py'> It seems to be caused by "version dependency". When I used torch-geometric2.1.0, I don't have this error. I have no idea how to sovle this problem. It looks like neither version will work.

lyzustc commented 1 year ago

Hi, @orientalCherry841, thank you for reporting the error. The problem with torch-geometric2.1.0 is similar to this issue, due to that swish cannot be imported from the latest pyg. We have fixed this problem in the latest commit and you may check whether torch-geometric2.1.0 works for you now.

orientalCherry841 commented 1 year ago

Thanks a lot. I solved the problem using the solution presented in that issue.