You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the following code (run on MacOS, python 3.12, templateflow 25.1.0):
import templateflow.api as tflow
tflow.get('MNI152NLin6Asym', resolution=2)
Throws the following error:
File ~/micromamba/envs/py312/lib/python3.12/site-packages/templateflow/client.py:237, in TemplateFlowClient.get(self, template, raise_empty, **kwargs)
234 raise Exception('No results found')
236 # Truncate possible S3 error files from previous attempts
--> 237 _truncate_s3_errors(out_file)
239 # Try DataLad first
240 dl_missing = [p for p in out_file if not p.is_file()]
File ~/micromamba/envs/py312/lib/python3.12/site-packages/templateflow/client.py:475, in _truncate_s3_errors(filepaths)
466 """
467 Truncate XML error bodies saved by previous versions of TemplateFlow.
468
(...)
472 List of file paths to check and truncate if necessary.
473 """
474 for filepath in filepaths:
--> 475 if filepath.is_file(follow_symlinks=False) and 0 < filepath.stat().st_size < 1024:
476 with open(filepath, 'rb') as f:
477 content = f.read(100)
TypeError: Path.is_file() got an unexpected keyword argument 'follow_symlinks'
I'm guessing this might be a leftover from the AWS outage?
Activity
mgxd commentedon Oct 21, 2025
nope, we were overambitious on python 3.13 adoption - fix coming in #155
mgxd commentedon Oct 21, 2025
fixed in
25.1.1