Google Colab script throws "Transport endpoint is not connected"

Silly me, I just simply had to unmount and mount the drive again:

!fusermount -u drive
!google-drive-ocamlfuse drive

Alternatively: Terminate the session by going to : Runtime -> Manage Sessions, then Click on terminate for the session. Then you can re-mount the drive. This will resolve the issue.


Goto Runtime on menubar and click on restart runtime option.

Or simply use the shortcut press CTRL + M


What i did is run this code>

import pandas as pd
from google.colab import drive

drive.mount('/content/gdrive', force_remount=True)

Then I saw my directory because I had to change the path

and it works to me!!