Google-drive-ocamlfuse: E: Unable to locate package google-drive-ocamlfuse

Created on 18 Sep 2018  路  21Comments  路  Source: astrada/google-drive-ocamlfuse

!apt-get -y install -qq google-drive-ocamlfuse fuse

E: Unable to locate package google-drive-ocamlfuse

Most helpful comment

Solution:

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

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

All 21 comments

I am getting the same issue today

Same for me today. With code that has been running for a month every day.

I am facing the same issue! What's happening???? I am trying to install this from yesterday

I just uploaded version 0.7.0. Have you tried running apt-get update again?

I have a python notebook that runs this every day:

# Install a Drive FUSE wrapper.
# https://github.com/astrada/google-drive-ocamlfuse
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools > /dev/null
!add-apt-repository -y ppa:alessandro-strada/ppa > /dev/null
!apt-get update -qq > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse > /dev/null

And it strarted failing today. Do I need to check now?

Which version of Ubuntu are you on?

I'm using colab notebooks so I don't know. How can I check?

I've got the same issue on Google colab notebook.

Warning: apt-key output should not be parsed (stdout is not a terminal)
E: Unable to locate package google-drive-ocamlfuse
I just encountered the same problem when i run keras in colaboratory.

The solution is this using colab library
Thanks to Craig Citro
https://github.com/googlecolab/colabtools/issues/276

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

That is not a solution to the problem

To find out which version of Ubuntu you are running, you can use this command: lsb_release -a

Why is it failing since yesterday which kept working for months???

Because I removed packages for zesty and artful, since they have reached end of life (https://wiki.ubuntu.com/Releases). If you cannot upgrade to bionic, you should download the package from the ppa (e.g. amd64) and install it with dpkg --install.

@astrada need help - steps/details to do this on colab?

Solution:

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

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

Solution:

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

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

This worked for 2 days for me ,now that is also not working :|

Solution:

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

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

This worked for 2 days for me ,now that is also not working :|

This still worked for me,I am using Colab training NN model.

The solution is this using colab library
Thanks to Craig Citro
googlecolab/colabtools#276

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

I've got the same issue. I am new to Google Colab so this is a bit confusing for me. I tried your solution but it doesn't work for this problem. Have I done something wrong?

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

!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse 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}

You should choose just one mounting method.

1. Using build-in Fuse

!echo 'Mounting...'
from google.colab import drive
drive.mount('/content/drive/')
!ls '/content/drive/My Drive'
!echo 'Mounted'

2. Using google-drive-ocamlfuse Fuse Driver

!echo 'Installing required software'
!apt-get install -y -qq software-properties-common module-init-tools 2>&1 > /dev/null
!echo 'Add apt-repository with Google.Drive Fuse'
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!echo 'Updating packages...'
!apt-get update -y -qq
!echo 'Installing google-drive-ocamlfuse fuse...'
!apt-get install -y -qq google-drive-ocamlfuse fuse
!echo 'Authenticate Fuse in Google.Drive...'
from google.colab import auth
from oauth2client.client import GoogleCredentials
import getpass
auth.authenticate_user()
creds = GoogleCredentials.get_application_default()
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass('Enter auth code here: ')
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
!echo 'Authenticated!'
!echo 'Creating mount directory'
!mkdir ./drive2
!echo 'Mounting...'
!google-drive-ocamlfuse ./drive2
!ls ./drive2
!echo 'Mounted!'
Was this page helpful?
0 / 5 - 0 ratings

Related issues

drgroot picture drgroot  路  4Comments

xxx31fr picture xxx31fr  路  3Comments

acardona picture acardona  路  3Comments

OneCDOnly picture OneCDOnly  路  7Comments

R-Chandra picture R-Chandra  路  3Comments