AntonioLonga/PytorchGeometricTutorial

Some tutorials no longer work with Google Colab

Closed this issue · 2 comments

Tutorial 14 and 15 both no longer work with colab and give this error after the second cell


OSError Traceback (most recent call last)
in ()
2 import os
3 import pandas as pd
----> 4 from torch_geometric.data import InMemoryDataset, Data, download_url, extract_zip
5 from torch_geometric.utils.convert import to_networkx
6 import networkx as nx

6 frames
/usr/lib/python3.7/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error)
362
363 if handle is None:
--> 364 self._handle = _dlopen(self._name, mode)
365 else:
366 self._handle = handle

OSError: /usr/local/lib/python3.7/dist-packages/torch_sparse/_convert_cpu.so: undefined symbol: _ZNK2at6Tensor5zero_Ev

The version of cuda and pytorch have changed in Colab, better to use the following code:
https://gist.github.com/ameya98/b193856171d11d37ada46458f60e73e7

Hi,

I've updated the install of torch to the latest version, now they works.

Best
Antonio