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

downloaded template "is not a gzip file" #344

Open
GerardYu opened this issue May 16, 2023 · 0 comments
Open

downloaded template "is not a gzip file" #344

GerardYu opened this issue May 16, 2023 · 0 comments

Comments

@GerardYu
Copy link

GerardYu commented May 16, 2023

Hi there i got the following error:

meta_analytic_decoder("fsaverage5",HCP_results_scaled)

2023-05-16 17:29:51,473 - brainstat - INFO - Fetching Neurosynth feature files. This may take several minutes if you haven't downloaded them yet.
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152Lin\tpl-MNI152Lin_res-02_desc-brain_mask.nii.gz
328B [00:00, 321kB/s]

Error in py_call_impl(callable, dots$args, dots$keywords) :
nibabel.filebasedimages.ImageFileError: File C:\Users\the_c\.cache\templateflow\tpl-MNI152Lin\tpl-MNI152Lin_res-02_desc-brain_mask.nii.gz is not a gzip file

i realized the downloaded tpl-MNI152Lin_res-02_desc-brain_mask.nii.gz file is a zero byte file. So I manually downloaded the template from https://www.templateflow.org/archive/ , replaced the zero byte file and it worked

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

1 participant