wkentaro / gdown

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

"Access denied with the following error" has occurred frequently #233

Closed cedro3 closed 1 year ago

cedro3 commented 1 year ago

Provide environment information

please run in Colab

import gdown urls = { "wav2lip_gan.pth": "10Iu05Modfti3pDbxCFPnofmfVlbkvrCm", "face_segmentation.pth": "154JgKpzCPW82qINcVieuPH3fZ2e0P812", "esrgan_max.pth": "1e5LT83YckB5wFKXWV4cWOPkVRnCDmvwQ" }

for name, id in urls.items(): url = f"https://drive.google.com/uc?id={id}" output = f"checkpoints/{name}" gdown.download(url, output, quiet=False) print(f"Loaded {name}")

------------------------------ log --------------------------------- Access denied with the following error: Loaded wav2lip_gan.pth

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:

 https://drive.google.com/uc?id=10Iu05Modfti3pDbxCFPnofmfVlbkvrCm 

Downloading... From: https://drive.google.com/uc?id=154JgKpzCPW82qINcVieuPH3fZ2e0P812 To: /content/wav2lip-hq/checkpoints/face_segmentation.pth 100%|██████████| 53.3M/53.3M [00:00<00:00, 340MB/s] Loaded face_segmentation.pth Access denied with the following error: Loaded esrgan_max.pth

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:

 https://drive.google.com/uc?id=1e5LT83YckB5wFKXWV4cWOPkVRnCDmvwQ 

What OS are you using?

Google Colab (Mac OS 11.6.1)

Describe the Bug

Since the end of last year, "Access denied with the following error" has occurred frequently when running gdown. This is just my guess, but it seems to occur with files larger than 50MB. Are there any countermeasures?

Expected Behavior

No response

To Reproduce

No response

Angpeu commented 1 year ago

Try it in colab: !pip install --upgrade gdown I had a same bug with big (~128MB) file in folder

cedro3 commented 1 year ago

I have confirmed that it works properly. thank you so much!