Repository navigation
Gdown failed for downloading files #8549
Copy link
Copy link
Closed
Description
[2025-08-27T21:19:00.057Z] ======================================================================
[2025-08-27T21:19:00.057Z] ERROR: test_shape_09 (tests.losses.test_perceptual_loss.TestPerceptualLoss)
[2025-08-27T21:19:00.057Z] ----------------------------------------------------------------------
[2025-08-27T21:19:00.057Z] Traceback (most recent call last):
[2025-08-27T21:19:00.057Z] File "/usr/local/lib/python3.10/dist-packages/gdown/download.py", line 267, in download
[2025-08-27T21:19:00.057Z] url = get_url_from_gdrive_confirmation(res.text)
[2025-08-27T21:19:00.057Z] File "/usr/local/lib/python3.10/dist-packages/gdown/download.py", line 53, in get_url_from_gdrive_confirmation
[2025-08-27T21:19:00.057Z] raise FileURLRetrievalError(error)
[2025-08-27T21:19:00.057Z] gdown.exceptions.FileURLRetrievalError: Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.
[2025-08-27T21:19:00.057Z]
[2025-08-27T21:19:00.057Z] During handling of the above exception, another exception occurred:
[2025-08-27T21:19:00.057Z]
[2025-08-27T21:19:00.057Z] Traceback (most recent call last):
[2025-08-27T21:19:00.057Z] File "/usr/local/lib/python3.10/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2025-08-27T21:19:00.057Z] return func(*(a + p.args), **p.kwargs, **kw)
[2025-08-27T21:19:00.057Z] File "/home/jenkins/agent/workspace/Monai-latest-image/tests/losses/test_perceptual_loss.py", line 82, in test_shape
[2025-08-27T21:19:00.057Z] loss = PerceptualLoss(**input_param)
[2025-08-27T21:19:00.057Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/losses/perceptual.py", line 112, in __init__
[2025-08-27T21:19:00.057Z] self.perceptual_function = MedicalNetPerceptualSimilarity(
[2025-08-27T21:19:00.057Z] File "/home/jenkins/agent/workspace/Monai-latest-image/monai/losses/perceptual.py", line 212, in __init__
[2025-08-27T21:19:00.057Z] self.model = torch.hub.load("warvito/MedicalNet-models", model=net, verbose=verbose)
[2025-08-27T21:19:00.057Z] File "/usr/local/lib/python3.10/dist-packages/torch/hub.py", line 645, in load
[2025-08-27T21:19:00.057Z] model = _load_local(repo_or_dir, model, *args, **kwargs)
[2025-08-27T21:19:00.057Z] File "/usr/local/lib/python3.10/dist-packages/torch/hub.py", line 674, in _load_local
[2025-08-27T21:19:00.057Z] model = entry(*args, **kwargs)
[2025-08-27T21:19:00.057Z] File "/root/.cache/torch/hub/warvito_MedicalNet-models_main/medicalnet_models/models/resnet.py", line 283, in medicalnet_resnet50_23datasets
[2025-08-27T21:19:00.057Z] cached_file = download_model(
[2025-08-27T21:19:00.057Z] File "/root/.cache/torch/hub/warvito_MedicalNet-models_main/medicalnet_models/models/resnet.py", line 201, in download_model
[2025-08-27T21:19:00.057Z] gdown.download(
[2025-08-27T21:19:00.057Z] File "/usr/local/lib/python3.10/dist-packages/gdown/download.py", line 278, in download
[2025-08-27T21:19:00.057Z] raise FileURLRetrievalError(message)
[2025-08-27T21:19:00.057Z] gdown.exceptions.FileURLRetrievalError: Failed to retrieve file url:
[2025-08-27T21:19:00.057Z]
[2025-08-27T21:19:00.057Z] Too many users have viewed or downloaded this file recently. Please
[2025-08-27T21:19:00.057Z] try accessing the file again later. If the file you are trying to
[2025-08-27T21:19:00.057Z] access is particularly large or is shared with many people, it may
[2025-08-27T21:19:00.057Z] take up to 24 hours to be able to view or download the file. If you
[2025-08-27T21:19:00.057Z] still can't access a file after 24 hours, contact your domain
[2025-08-27T21:19:00.057Z] administrator.
[2025-08-27T21:19:00.057Z]
[2025-08-27T21:19:00.057Z] You may still be able to access the file from the browser:
[2025-08-27T21:19:00.057Z]
[2025-08-27T21:19:00.057Z] https://drive.google.com/uc?export=download&id=1qXyw9S5f-6N1gKECDfMroRnPZfARbqOP
[2025-08-27T21:19:00.057Z]
[2025-08-27T21:19:00.057Z] but Gdown can't. Please check connections and permissions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
KumoLiu commentedon Aug 28, 2025
Hi @ericspod, I've noticed that the file downloads have been failing for several days. Do you have any insights into what's happening? Should we consider skipping these tests for now until the issue is resolved?
ericspod commentedon Aug 30, 2025
Hi @Warvito we think the problem is that your repo uses Google Drive data which is rate limiting the number of downloads. The links work for me through a browser but our CICD tests are hitting limits now. Would it be possible to move your model to HuggingFace and update the links in the repo to download files from there? We think that HuggingFace is a good place to store models and datasets and are in the process of moving our CICD data over. This might be a better approach overall rather that torchhub, we can think about changing the perceptual loss definition to do so. We've been putting up models from the zoo and elsewhere here, for example. Thanks!
KumoLiu commentedon Sep 1, 2025
Failed tests:
ericspod commentedon Sep 1, 2025
I suspect
Warvito/radimagenet-modelsis going to have the same problem.ericspod commentedon Sep 1, 2025
@KumoLiu I experimented with temporarily disabling tests with failed gdown downloads by changing skip_if_download_fails.
Fix gdown fails (#8576)
Fix gdown fails (Project-MONAI#8576)
Fix gdown fails (Project-MONAI#8576)