Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib errors while running MRIQC #79

Open
lixinqiu98 opened this issue Mar 13, 2024 · 2 comments
Open

Matplotlib errors while running MRIQC #79

lixinqiu98 opened this issue Mar 13, 2024 · 2 comments

Comments

@lixinqiu98
Copy link

lixinqiu98 commented Mar 13, 2024

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
Copy link
Collaborator

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

@lixinqiu98
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants