poldracklab / tacc-openneuro

0 stars 1 forks source link

Matplotlib errors while running MRIQC #79

Open lixinqiu98 opened 3 months ago

lixinqiu98 commented 3 months ago

Hello!

Similar errors occurred here! I am running MRIQC using 'datalad containers-run' (with Singularity containers) with command

datalad containers-run -m "run mriqc on sub-XXX" -i "BIDS/sub-KULXXX/*" 
-o "mriqc/sub-XXX/*" -n pipeline/mriqc BIDS mriqc participant 
--participant-label XXX --verbose --verbose-reports --fd_thres 0.9

It works normally until I added restrictive options "--n_cpus 24 --mem_gb 128". After that, I got the error massages like this:

Matplotlib created a temporary config/cache directory at /tmp/matplotlib-3yjspzlp 
because the default path (/home/mriqc/.config/matplotlib) is not a writable directory; 
it is highly recommended to set the MPLCONFIGDIR environment variable to a writable 
directory, in particular to speed up the import of Matplotlib and to better support 
multiprocessing.
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
...

We tried to set environment variable for the default path (/home/mriqc/.config/matplotlib) with write permission but it did not help, even though we ran the command without extra options...

There is a similar situation but in my case, the matplotlib stopped generating figures so the outputs were not intact.

Have you already solved this problem and could give me some advice? @jbwexler

Or does anyone know how to configure it to define a cache dir correctly? Thank you for any help you could offer!

jbwexler commented 3 months ago

That's interesting, thanks for sharing. I haven't solved this yet. @effigies does this give you any ideas for solutions?

lixinqiu98 commented 3 months ago

That's interesting, thanks for sharing. I haven't solved this yet. @effigies does this give you any ideas for solutions?

Thank you for your reply! We've tried to change the permissions but it didn't work.