Unable to locate package google-drive-ocamlfuse , suddenly stopped working

后端 未结 2 1222
谎友^
谎友^ 2021-01-07 03:33

I have been using colab lately and till now I used google-drive-ocamlfuse to link my project to my drive but not it is unable to load package.

!apt-get updat         


        
相关标签:
2条回答
  • 2021-01-07 03:44

    An even simpler fix is to use the built-in Drive FUSE client:

    from google.colab import drive
    drive.mount('/content/gdrive')
    

    More details: https://colab.research.google.com/notebooks/io.ipynb#scrollTo=u22w3BFiOveA

    0 讨论(0)
  • 2021-01-07 04:02

    This should work fine as per https://github.com/astrada/google-drive-ocamlfuse/issues/493#issuecomment-422380636

    Change the build between amd64, arm64, armhf, i386 from https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa/+packages

    !apt-get install -y -qq software-properties-common python-software-properties module-init-tools
    !wget https://launchpad.net/~alessandro-strada/+archive/ubuntu/google-drive-ocamlfuse-beta/+build/15331130/+files/google-drive-ocamlfuse_0.7.0-0ubuntu1_amd64.deb
    !dpkg -i google-drive-ocamlfuse_0.7.0-0ubuntu1_amd64.deb
    !apt-get install -f
    !apt-get -y install -qq fuse
    from google.colab import auth
    auth.authenticate_user()
    from oauth2client.client import GoogleCredentials
    creds = GoogleCredentials.get_application_default()
    import getpass
    !google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
    vcode = getpass.getpass()
    !echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
    
    0 讨论(0)
提交回复
热议问题