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

Hi there,

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

Hope anyone can help on this.

Best regards,

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.