Pytorch geometric create custom dataset error:TypeError: expected str, bytes or os.PathLike object, not NoneType[posixpath.py]

Hi there,

I am new to PyG and facing with a error as below:

Hope anyone can help on this.

Best regards,
Chao

Based on the error message it seems a path is expected while you are passing a None object. Check if graphs is None and make sure it’s the expected object for your CustomDataset.

PS: it’s always better to post code snippets by wrapping it into three backticks ``` instead of posting pictures.