You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to follow this notebook but in the part for training (Creating Datasets) I got this error:
File /cluster/ddu/cmmartinez001/graphein/notebooks/../graphein/ml/conversion.py:274, in GraphFormatConvertor.convert_nx_to_pyg(self, G)
264 """
265 Converts NetworkX graph to pytorch_geometric.data.Data object. Requires PyTorch Geometric (https://pytorch-geometric.readthedocs.io/en/latest/) to be installed.
266
(...)
270 :rtype: pytorch_geometric.data.Data
271 """
273 # Initialise dict used to construct Data object & Assign node ids as a feature
--> 274 data = {"node_id": list(G.nodes())}
275 G = nx.convert_node_labels_to_integers(G)
277 # Construct Edge Index
AttributeError: 'NoneType' object has no attribute 'nodes'
I think I instaled everything but I am not sure why i got this.
BW,
Cesar
The text was updated successfully, but these errors were encountered:
I was trying to follow this notebook but in the part for training (Creating Datasets) I got this error:
File /cluster/ddu/cmmartinez001/graphein/notebooks/../graphein/ml/conversion.py:274, in GraphFormatConvertor.convert_nx_to_pyg(self, G)
264 """
265 Converts
NetworkX
graph topytorch_geometric.data.Data
object. RequiresPyTorch Geometric
(https://pytorch-geometric.readthedocs.io/en/latest/) to be installed.266
(...)
270 :rtype: pytorch_geometric.data.Data
271 """
273 # Initialise dict used to construct Data object & Assign node ids as a feature
--> 274 data = {"node_id": list(G.nodes())}
275 G = nx.convert_node_labels_to_integers(G)
277 # Construct Edge Index
AttributeError: 'NoneType' object has no attribute 'nodes'
I think I instaled everything but I am not sure why i got this.
BW,
Cesar
The text was updated successfully, but these errors were encountered: