Arthur
05/20/2026, 5:34 AMMPLCONFIGDIR? Should modules be updated to set this, and if so what?Maxime Garcia
05/20/2026, 6:48 AMMahesh Binzer-Panchal
05/20/2026, 6:51 AMMaxime Garcia
05/20/2026, 6:53 AMArthur
05/20/2026, 7:57 AMJeremy Muhlich
05/25/2026, 3:24 PM$HOME, which nextflow sets to the workdir. Did you find a situation where this doesn't work?
https://matplotlib.org/stable/install/environment_variables_faq.html#envvar-MPLCONFIGDIRArthur
05/25/2026, 11:12 PM25.10.4 at least) definitely doesn’t explicitly set $HOME to the workDir. You can see which env vars it is setting for the slurm executor here (all other env is dropped, thus whatever the container sets for $HOME) is used:
PATH="$PATH" ${TMP:+SINGULARITYENV_TMP="$TMP"} ${TMPDIR:+SINGULARITYENV_TMPDIR="$TMPDIR"} ${NXF_TASK_WORKDIR:+SINGULARITYENV_NXF_TASK_WORKDIR="$NXF_TASK_WORKDIR"} SINGULARITYENV_NXF_DEBUG="${NXF_DEBUG:=0}"
Now yes, --no-home should in theory mean that it’s set to something else but I do not see this in reality, the container correctly opens in the PWD but the HOME is set to the host home still.
Even if I run singularity exec and explicitly have HOME=$PWD I still see that $HOME is my host $HOME in the container. Possibly there is some global option or configuration here which is causing this to be overridden? The only way so far I have been able to force it is by setting APPTAINER_HOME
Also worth noting that it is actually running apptainer not singularityJeremy Muhlich
05/25/2026, 11:27 PM$HOME inside containers to the workdir. I realize now that nextflow itself doesn't touch $HOME. Sorry about that.Arthur
05/25/2026, 11:33 PMJeremy Muhlich
05/25/2026, 11:35 PMMatplotlib created a temporary config/cache directory at... message, or something worse?Arthur
05/25/2026, 11:37 PMArthur
05/27/2026, 3:33 AMHOME=$HOME even with --no-home is a singularity/apptainer behaviour (a dumb one imo) and that possibly nextflow should consider using --home $PWD as well as --no-home?Jeremy Muhlich
05/27/2026, 10:45 PM