wkentaro / gdown

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

Cannot retrieve the public link of the file. #151

Closed cedro3 closed 2 years ago

cedro3 commented 2 years ago

I have been using gdown for a long time, but since February 17th, 'Cannot retrieve the public link of the file' has occurred in various places. Of course, setting'Anyone with the link'and waiting 24 hours will not change the situation. Something has changed in the google spec and do I need to take any additional action?

justinjohn0306 commented 2 years ago

Same issue here, time for another patch I guess xD

wkentaro commented 2 years ago

Is there any example URL to be used for investigation?

cedro3 commented 2 years ago

I will contact you with a sample error URL

gdown.download ('https://drive.google.com/uc?id=1pWWSm_c75ieMExJPWJuYA1wby-hm4f1J','./pretrained_models/psp_encoder.pt', quiet = False)

gdown.download ('https://drive.google.com/uc?id=1rlmCCuLH4euzIwzqlYh8LiF5iizh5UWV','yui.zip', quiet = False)

Please confirm.

If you have a URL sample that works, please let me know.

wkentaro commented 2 years ago

Hmm, both of the URLs work in my environment.

image
cedro3 commented 2 years ago

I understand the cause. This error occurred because gdown was still an older version in google colab. Currently, when using gdown with google colab, you always need'! Pip install --upgrade gdown'. Thank you so much. This problem has been resolved.

wkentaro commented 2 years ago

🎉

osushilover commented 2 years ago

Hi there, After installing 4.4.0, gdown is still unstable on Colab. The following error message is left as proof of this. However, strangely enough, I have also confirmed that it works correctly if I retry the same code several times.

''' Successfully built gdown Installing collected packages: gdown Attempting uninstall: gdown Found existing installation: gdown 4.2.2 Uninstalling gdown-4.2.2: Successfully uninstalled gdown-4.2.2 Successfully installed gdown-4.4.0 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:

 https://drive.google.com/uc?id=hogehoge 

'''

ma7dev commented 2 years ago

I am still having the problem. I can't download the files.