ANTsPyNet icon indicating copy to clipboard operation
ANTsPyNet copied to clipboard

Error: URL fetch failure 403 -- Forbidden, when running antspynet.utilities.brain_extraction

Open Lucifer201210 opened this issue 1 year ago • 3 comments

When I running the following command line to exact brain from T1.nii.gz, an error happened.

from antspynet.utilities import brain_extraction prob_brain_mask = brain_extraction(raw_img_ants, modality='t1',verbose=True)

the error information was as follows: Brain extraction: retrieving model weights. Brain extraction: retrieving template. Downloading data from https://ndownloader.figshare.com/files/22597175 ...... Exception: URL fetch failure on https://ndownloader.figshare.com/files/22597175: 403 -- Forbidden

It seem to be that the URL(https://ndownloader.figshare.com/files/22597175) was invalid, the command brain_extraction need to download data from the URL. Then I copy the to chrome browser, the URL was forbidden.

Was there any solution to this error?

Lucifer201210 avatar Aug 18 '24 07:08 Lucifer201210

The command line to exact brain from T1.nii.gz was:

`from antspynet.utilities import brain_extraction

brain_extraction prob_brain_mask = brain_extraction(raw_img_ants, modality='t1',verbose=True) `

Lucifer201210 avatar Aug 18 '24 07:08 Lucifer201210

Thanks for posting the exact link that is problematic for you. The URL isn't invalid as I don't have any problem downloading that file using chrome. Do you have an institutional block of some sort preventing you from downloading from the figshare site?

ntustison avatar Aug 18 '24 13:08 ntustison

Where are you connecting from? If you are using an online notebook or other shared service, it is possible that figshare is limiting downloads

cookpa avatar Aug 18 '24 14:08 cookpa

Closing due to inactivity.

ntustison avatar Dec 05 '24 23:12 ntustison