You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I tried to download a file from google drive file id using the function utils.download_from_url with 0.10.0.
The logic of the function has a problem so I can not download the file.
Additional context
Add any other context about the problem here.
I found a solution
In the code, https://github.com/pytorch/text/blob/v0.10.0/torchtext/utils.py
If I remove the code from line number 133 to 140 as below.
if confirm_token is None:
if "Quota exceeded" in str(response.content):
raise RuntimeError(
"Google drive link {} is currently unavailable, because the quota was exceeded.".format(
url
))
else:
raise RuntimeError("Internal error: confirm_token was not found in Google drive link.")
I do not know what is the role of confirm_token.
But If I skip using the confirmed token, the code works well.
The text was updated successfully, but these errors were encountered:
Thanks @YonghyunRyu for raising the issue. It seems the link doesn't offer confirm_token and it currently only support downloading from google drive links that have confirm_token. Although I do not see reason why we should not support google drive downloads without confirm_token. Let me fix it in the Master.
🐛 Bug
Describe the bug
I tried to download a file from google drive file id using the function
utils.download_from_url
with 0.10.0.The logic of the function has a problem so I can not download the file.
To Reproduce
this code raised an error.
Expected behavior
But, I think this must download the file.
Environment
python==3.9
torchtext==0.10.0
Ubuntu 20.04
Additional context
Add any other context about the problem here.
I found a solution
In the code,
https://github.com/pytorch/text/blob/v0.10.0/torchtext/utils.py
If I remove the code from line number 133 to 140 as below.
I do not know what is the role of
confirm_token
.But If I skip using the confirmed token, the code works well.
The text was updated successfully, but these errors were encountered: