-
Notifications
You must be signed in to change notification settings - Fork 249
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
Lazy load matplotlib to avoid import locks #739
Comments
Thanks for reporting. This is a site installation issue so there is a fundamental problem out of our control. Nonetheless, you could:
We could also lazy load like you suggested. I'm really busy these days, do you think you could open a PR? I'd be happy to assist |
The error message that you see happens when multiple processes are using Matplotlib and they all want to write to |
Another thing that you could try is to add a random delay to the startup of your process to decrease the chance of two copies of your project trying to import |
I had a similar issue with a different software that also created certain files on first start. I worked around it by logging in to the nodes of the HPC cluster where my code would run, and starting up a single instance of this software manually, so that the file could be created correctly. |
On a SLURM cluster I've seen some hangs due to igraph loading matplotlib
Unfortunately, it is not under my power to uninstall matplotlib because it is installed in some shared space. Ideally, igraph would load it lazily only if needed.
The text was updated successfully, but these errors were encountered: