Skip to content

MNI152NLin2009b Templates not available #157

@leon-k-martin

Description

@leon-k-martin

It seems that the MNI152NLin2009b templates are currently unavailable.

Neither from browser:
the following error:

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>tpl-MNI152NLin2009bAsym/tpl-MNI152NLin2009bAsym_res-1_T1w.nii.gz</Key>
<RequestId>DVS0SC5MVH3GT2GP</RequestId>
<HostId>XmfTwWGmCdzM9SaoguIW+NBSBtJ7ASoIgJjW1gxW5TgBveilGfRR9oaVO38kUIEHWvYHMKmAKXU=</HostId>
</Error>

Nor from python api:

from templateflow import api

api.get(
    "MNI152NLin2009bAsym",
    resolution=1,
    suffix="T1w",
    extension="nii.gz",
)

restults in

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[1], line 3
      1 from templateflow import api
----> 3 api.get(
      4     "MNI152NLin2009bAsym",
      5     resolution=1,
      6     suffix="T1w",
      7     extension="nii.gz",
      8 )

File .venv/lib/python3.13/site-packages/templateflow/client.py:249, in TemplateFlowClient.get(self, template, raise_empty, **kwargs)
    247 s3_missing = [p for p in out_file if p.is_file() and p.stat().st_size == 0]
    248 for filepath in s3_missing + dl_missing:
--> 249     _s3_get(self.cache.config, filepath)
    251 not_fetched = [str(p) for p in out_file if not p.is_file() or p.stat().st_size == 0]
    253 if not_fetched:

File .venv/lib/python3.13/site-packages/templateflow/client.py:389, in _s3_get(config, filepath)
    387 r = requests.get(url, stream=True, timeout=config.timeout)
    388 if r.status_code != 200:
--> 389     raise RuntimeError(f'Failed to download {url} with status code {r.status_code}')
    391 # Total size in bytes.
    392 total_size = int(r.headers.get('content-length', 0))

RuntimeError: Failed to download https://templateflow.s3.amazonaws.com/tpl-MNI152NLin2009bAsym/tpl-MNI152NLin2009bAsym_res-1_T1w.nii.gz with status code 404

Am I missing something?

Many thanks! <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions