Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Jun 18, 2012, at 6:19 AM, Martin Mokrejs mmokr...@fold.natur.cuni.cz wrote: Hi, I am running some script in /mnt/blah and while my $HOME disk on a different device filled up because of some other reason. But my script ran in /mnt/blah died as well while there is plenty of space. Here is the stacktrace. Try setting the MPLCONFIGDIR environment variable to the writable dir or your choice. mpl does need a place to store some files, which is $HOME/.matplotlib by default, but you can configure it. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
John Hunter wrote: On Jun 18, 2012, at 6:19 AM, Martin Mokrejs mmokr...@fold.natur.cuni.cz wrote: Hi, I am running some script in /mnt/blah and while my $HOME disk on a different device filled up because of some other reason. But my script ran in /mnt/blah died as well while there is plenty of space. Here is the stacktrace. Try setting the MPLCONFIGDIR environment variable to the writable dir or your choice. mpl does need a place to store some files, which is $HOME/.matplotlib by default, but you can configure it. Hmm. Could it be by default the current working directory instead? Or, try/else added to the code which would try to write into cwd if $HOME (aka $MPLCONFIGDIR) returns an error? I will set the variable in my scripts but too late for those already in the queue. ;-) Thanks. Martin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Mon, Jun 18, 2012 at 7:29 AM, Martin Mokrejs mmokr...@fold.natur.cuni.cz wrote: Hmm. Could it be by default the current working directory instead? Or, try/else added to the code which would try to write into cwd if $HOME (aka $MPLCONFIGDIR) returns an error? The stuff we store there is meant to be persistent between runs, primarily a cache of all the fonts we find on your system. So defaulting to the current working directory is not a good idea because then we would have configs littered across the filesystem and would not be able to take advantage of the information gleaned from previous runs from other directories. JDH -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Mon, Jun 18, 2012 at 8:41 AM, John Hunter jdh2...@gmail.com wrote: On Mon, Jun 18, 2012 at 7:29 AM, Martin Mokrejs mmokr...@fold.natur.cuni.cz wrote: Hmm. Could it be by default the current working directory instead? Or, try/else added to the code which would try to write into cwd if $HOME (aka $MPLCONFIGDIR) returns an error? The stuff we store there is meant to be persistent between runs, primarily a cache of all the fonts we find on your system. So defaulting to the current working directory is not a good idea because then we would have configs littered across the filesystem and would not be able to take advantage of the information gleaned from previous runs from other directories. JDH However, should it be a full-out error? Is it possible to have mpl run without a font cache? Just a thought. Ben Root -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Mon, Jun 18, 2012 at 7:50 AM, Benjamin Root ben.r...@ou.edu wrote: However, should it be a full-out error? Is it possible to have mpl run without a font cache? I'm sure we could, but from an implementation perspective it would probably be easier to spoof it with a virtual filesystem and files using string io or equivalent. I think this would be a good feature if anyone wants to pursue it. JDH -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users