[Matplotlib-users] RuntimeError: Could not open facefile

2012-03-23 Thread Andrew Smart
Hi, I'm running into this RuntimeError: Could not open facefile c:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf; Cannot_Open_Resource when I'm trying to save out a series of *.png files in a loop. It crashes on this error after many passes through the loop and successful files

Re: [Matplotlib-users] RuntimeError: Could not open facefile

2012-03-23 Thread Michael Droettboom
This is a known bug on Windows where it runs out of file handles after a while. This commit was an attempt to fix it, but it doesn't seem to work: https://github.com/matplotlib/matplotlib/commit/4cb2aaa87b0aa9efe7178d7510d3d091ef5206df I think we need a Windows user/developer/expert to get to

Re: [Matplotlib-users] RuntimeError: Could not open facefile

2012-03-23 Thread Andrew Smart
Ok thank you - so one way to work around it is to just generate the files I want in batches so Windows won't run out of file handles - but is there a way to know how many handles are available? I'm trying to animate some data and I don't really know how many frames there are - could be thousands.

Re: [Matplotlib-users] RuntimeError: Could not open facefile

2012-03-23 Thread John Hunter
On Fri, Mar 23, 2012 at 3:35 PM, Andrew Smart andrew.johnsm...@gmail.comwrote: Hi, I'm running into this RuntimeError: Could not open facefile c:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf; Cannot_Open_Resource when I'm trying to save out a series of *.png files in a