When connecting a drive folder in our colab its given a error

please show the last error line It is not visible in the image.
Also please reload the notebook and try it. Most probably it will mount.


I will try many times but it not works not this colab other assignment as wel

Ok try to to change the drive.mount line to

drive._mount('/content/drive')


it will given a value error.

how many accounts are you logged into with gmail now? Is it more than one?

no sir only one acounts is logged

Follow these steps:

  1. Run the below code:
!sudo add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!sudo apt-get update -qq 2>&1 > /dev/null
!sudo apt -y install -qq google-drive-ocamlfuse 2>&1 > /dev/null
!google-drive-ocamlfuse
  1. From the previous step, you get an error like this. Click on the link that locates in the previous error message and authenticate your account. This will be the last line of the error message.

Failure("Error opening URL:Sign in – Google accounts… ")

  1. Run the below code:
!sudo apt-get install -qq w3m # to act as web browser 
!xdg-settings set default-web-browser w3m.desktop # to set default browser
%cd /content
!mkdir drive
%cd drive
!mkdir MyDrive
%cd ..
%cd ..
!google-drive-ocamlfuse /content/drive/MyDrive

You must get this message:

Access token retrieved correctly.

Hi arshad,
Did it work?

yes sir it works but sir this is a long process so every colab do the same thing


but sir when sym linking this code is execute but not seen here the data folder

Hi arshad…do not do sym linking it is prone to error. If you checkout the instruction i have mentioned that you need to use data in the same way that you have been using in pandas and earlier chapters

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.