Closed saigerutherford closed 4 years ago
Looks like you are hitting a problem fetching the templates - could you take a look at https://fmriprep.readthedocs.io/en/stable/singularity.html#internet-access-problems and see if pre-fetching locally helps?
In any case, it may be worthwhile to include the fsLR templates directly in the Docker image to avoid this hassle - any objections @oesteban @effigies ?
@mgxd You covered everything I was about to type. Yes, let's do that.
Thanks for addressing this so quickly! I tried to go down the road of fetching the templates on my own but got stuck when transferring it over to the cluster. How can I tell when a new Docker image with the templates included will be ready to build?
It will be a new release (20.0.1)
I take it, it will be a bit before the 20.0.1 release hits the street, yes? But in the meantime, I think this would make the Singularity container created from 20.0.0 workable now, yes?
Finally, run the singularity image binding the appropriate folder:
$ export SINGULARITYENV_TEMPLATEFLOW_HOME=/templateflow $ singularity run -B ${TEMPLATEFLOW_HOME:-$HOME/.cache/templateflow}:/templateflow \ --cleanenv fmriprep.simg <fmriprep arguments>
and that would bind the /templateflow inside the container to the invoking user's
$HOME/.cache/templateflow
directory, if I'm reading that correctly...?
and that would bind the /templateflow inside the container to the invoking user's
$HOME/.cache/templateflow
directory, if I'm reading that correctly...?
unless I'm missing some detail, yes - this is correct. Your singularity installation should honor the SINGULARITYENV_*
magic though.
If not, you can just do:
$ singularity run -B ${TEMPLATEFLOW_HOME:-$HOME/.cache/templateflow}:/home/fmriprep/.cache/templateflow \
--cleanenv fmriprep.simg <fmriprep arguments>
This was fixed in #1996, and #1997 should ensure that we catch these problems in the future, at least for common templates.
I think we can have a bug-fix release by next Monday. Possibly earlier, but it's a busy week so I don't want to make promises others might need to scramble to keep. :-)
Cifti output spaces does not seem to be working in the singularity container version 20.0.0.
Here is the command I am running fMRIPrep with:
And here is the error output: