wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.34k stars 351 forks source link

Access denied with the following error Google Colab #148

Closed Colabnoob closed 2 years ago

Colabnoob commented 2 years ago

Access denied with the following error: Tacotron2 Model Downloaded Access denied with the following error:

Cannot retrieve the public link of the file. You may need to change
the permission to 'Anyone with the link', or have had many accesses. 

You may still be able to access the file from the browser: Can anyone solve this issue? I'm using google colab

wkentaro commented 2 years ago

Is this issue related? https://github.com/wkentaro/gdown/issues/146

Colabnoob commented 2 years ago

Yes but I’m using google Colab, does that make any difference? I’m not a expert at this kinda stuff

wkentaro commented 2 years ago

I'm not super familiar with Colab, but I don't think so. Maybe you can first make sure that you're using the latest gdown.

import gdown
print(gdown.__version__)  # this should be 4.3.0
Colabnoob commented 2 years ago

i added the command, it's still showing the same result, i have used different notebooks and different links and it didn't work however someone said that the first file successfully downloaded but the second one failed? this happened to me once and didn't work after but i used HIFI-GAN and after a few tries it actually downloaded, could it be my cookies? i never had this problem before

wkentaro commented 2 years ago

Can you confirm you're using the latest version of gdown? 4.3.0

Colabnoob commented 2 years ago

@title Install Tacotron and Waveglow

%tensorflow_version 1.x import os from os.path import exists, join, basename, splitext !pip install gdown git_repo_url = 'https://github.com/NVIDIA/tacotron2.git' project_name = splitext(basename(git_repo_url))[0] if not exists(project_name):

clone and install

!git clone -q --recursive {git_repo_url} !cd {project_name}/waveglow && git checkout 2fd4e63 !pip install -q librosa unidecode

import sys sys.path.append(join(project_name, 'waveglow/')) sys.path.append(project_name) import time import matplotlib import matplotlib.pylab as plt import gdown print(gdown.version) # this should be 4.3.0 d = 'https://drive.google.com/uc?id=' I imported it at the bottom and it loads successfully, still getting the same error..

wkentaro commented 2 years ago

What is the output of print(gdown.__version__)?

Colabnoob commented 2 years ago

Requirement already satisfied: gdown in /usr/local/lib/python3.7/dist-packages (4.2.1) Is this the output?

wkentaro commented 2 years ago

It says you're using gdown 4.2.1, which is an older version. That is potentially why you're still having the permission error.

You can upgrade gdown by !pip install --upgrade --no-cache-dir gdown.

Colabnoob commented 2 years ago

Yep this has worked, Thanks a lot for the support, really appreciate it!

wkentaro commented 2 years ago

🎉 You're welcome!

Hello-Imagine commented 2 years ago

I got into the same problem. Thanks a lot ;)

yinchyu commented 2 years ago

It says you're using gdown 4.2.1, which is an older version. That is potentially why you're still having the permission error.

You can upgrade gdown by !pip install --upgrade --no-cache-dir gdown.

thanks