pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
21.23k stars 3.64k forks source link

can not processing mutag dataset #2079

Closed AllenZhaoYB closed 3 years ago

AllenZhaoYB commented 3 years ago

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

1.mutag_dataset = Entities(root='./data/MUTAG', name='MUTAG')

Expected behavior

The dataset was processed

Environment

Additional context

ValueError: invalid literal for int() with base 10: rdflib.term.URIRef('http://dl-learner.org/carcinogenesis#d331') This error occurs at torch_geometric.datasets.Entities. line 128. nodes_dict = {np.unicode(key): val for key, val in nodes_dict.items()} example of the keys is: rdflib.term.URIRef('http://dl-learner.org/carcinogenesis#d331').

AllenZhaoYB commented 3 years ago

I found the solution. It is because the depression of np.unicode. Just change the np.unicode to np.compat.unicode, it will work.