pyg-team / pytorch_geometric

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

networkx has no attribute planar_layout on Jupyter Notebook #2181

Open 9B8DY6 opened 3 years ago

9B8DY6 commented 3 years ago

🐛 Bug

I downloaded GNN Explanation.ipynb and uploaded it to Jupyter Notebook I was trying to run GNN Explanation.ipynb , google colab example you had made on the Jupyter Notebook. I got this error but not on google colab.

image

To Reproduce

Steps to reproduce the behavior:

  1. Check version of Pytorch, CUDA, Python
  2. Run it on Google Colab

Expected behavior

Environment

Additional context

rusty1s commented 3 years ago

Seems like Colab comes with an older networkx library by default. This behaviour was moved to networkx.drawing.layout.planar_layout in a new release.

Can you check if that fixes your issues?

9B8DY6 commented 3 years ago

@rusty1s No fix.... image

rusty1s commented 3 years ago

Please check your networkx version and upgrade if necessary.