Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lucifer201210 opened this issue Aug 18, 2024 · 3 comments

Comments

@Lucifer201210
Copy link

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
Copy link
Author

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)
`

@ntustison
Copy link
Member

ntustison commented Aug 18, 2024

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?

@cookpa
Copy link
Member

cookpa commented Aug 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants