Skip to content

Gdown failed for downloading files #8549

Closed

Description

@KumoLiu

[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.

Activity

  1. KumoLiu commented on Aug 28, 2025

    @KumoLiu
    ContributorAuthor

    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?

  2. ericspod commented on Aug 30, 2025

    @ericspod
    Member

    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!

  3. KumoLiu commented on Sep 1, 2025

    @KumoLiu
    ContributorAuthor

    Failed tests:

    Failed tests Link
    test_identical_input_02, 03, 04 (tests.losses.test_perceptual_loss.TestPerceptualLoss) https://drive.google.com/uc?export=download&id=1VOWHgOq0rm7OkE_JxlWXhMAH4CvcXUHT
    test_shape_02, 03, 04, (tests.losses.test_perceptual_loss.TestPerceptualLoss) same as above
    test_identical_input_05, 06, 07 (tests.losses.test_perceptual_loss.TestPerceptualLoss) https://drive.google.com/uc?export=download&id=1HLpyQ12SmzmCIFjMcNs4j3Ijyy79JYLk
    test_shape_05, 06, 07, (tests.losses.test_perceptual_loss.TestPerceptualLoss) same as above
    test_identical_input_08, 09, (tests.losses.test_perceptual_loss.TestPerceptualLoss) https://drive.google.com/uc?export=download&id=1qXyw9S5f-6N1gKECDfMroRnPZfARbqOP
    test_shape_08, 09, (tests.losses.test_perceptual_loss.TestPerceptualLoss) same as above
  4. self-assigned this
    on Sep 1, 2025
  5. ericspod commented on Sep 1, 2025

    @ericspod
    Member

    I suspect Warvito/radimagenet-models is going to have the same problem.

  6. ericspod commented on Sep 1, 2025

    @ericspod
    Member

    @KumoLiu I experimented with temporarily disabling tests with failed gdown downloads by changing skip_if_download_fails.

  7. added a commit that references this issue on Sep 21, 2025
    cf5790d
  8. added 2 commits that reference this issue on Sep 29, 2025
    4adaed5
    33539a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions