[matplotlib-devel] RuntimeError: Could not open facefile
Hello, I am getting this runtime error for some of my plotting scripts ever since I did a clean build and install of matplotlib from the svn repo: [snip] File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/text.py", line 524, in draw bbox, info = self._get_layout(renderer) File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/text.py", line 298, in _get_layout ismath=False) File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gdk.py", line 309, in get_text_width_height_descent layout, inkRect, logicalRect = self._get_pango_layout(s, prop) File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gdk.py", line 283, in _get_pango_layout font_str = '%s, %s %i' % (prop.get_name(), prop.get_style(), size,) File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/font_manager.py", line 742, in get_name return ft2font.FT2Font(str(findfont(self))).family_name RuntimeError: Could not open facefile /home/bvr/Programs/matplotlib/lib/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannot_Open_Resource The file exists, and is certainly read-able. The program "Fonty Python" even checked and said that the fonts in that folder were valid, and displayed samples. Looking back at discussion threads before, this error has come up before back in 2007: http://www.mail-archive.com/matplotlib-us...@lists.sourceforge.net/msg05229.html Any thoughts? Thanks, Ben Root -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] RuntimeError: Could not open facefile
On Thu, Jun 3, 2010 at 2:41 PM, Benjamin Root wrote: > Hello, > > I am getting this runtime error for some of my plotting scripts ever since I > did a clean build and install of matplotlib from the svn repo: > > [snip] > File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/text.py", line > 524, in draw > bbox, info = self._get_layout(renderer) > File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/text.py", > line 298, in _get_layout > ismath=False) > File > "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gdk.py", > line 309, in get_text_width_height_descent > layout, inkRect, logicalRect = self._get_pango_layout(s, prop) > File > "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gdk.py", > line 283, in _get_pango_layout > font_str = '%s, %s %i' % (prop.get_name(), prop.get_style(), size,) > File > "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/font_manager.py", > line 742, in get_name > return ft2font.FT2Font(str(findfont(self))).family_name > RuntimeError: Could not open facefile > /home/bvr/Programs/matplotlib/lib/matplotlib/mpl-data/fonts/ttf/Vera.ttf; > Cannot_Open_Resource > > The file exists, and is certainly read-able. The program "Fonty Python" > even checked and said that the fonts in that folder were valid, and > displayed samples. Looking back at discussion threads before, this error has > come up before back in 2007: > http://www.mail-archive.com/matplotlib-us...@lists.sourceforge.net/msg05229.html > > Any thoughts? Just a shot in the dark, but does it help to flush the font cache in your .matplotlib dir? > rm -rf ~/.matplotlib/font*.cache JDH -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] RuntimeError: Could not open facefile
Yes! Thank you! As extra debugging info, the issue was happening regardless of me choosing GTK, GTKAgg, and others for backends. Ben Root On Thu, Jun 3, 2010 at 2:45 PM, John Hunter wrote: > On Thu, Jun 3, 2010 at 2:41 PM, Benjamin Root wrote: > > Hello, > > > > I am getting this runtime error for some of my plotting scripts ever > since I > > did a clean build and install of matplotlib from the svn repo: > > > > [snip] > > File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/text.py", > line > > 524, in draw > > bbox, info = self._get_layout(renderer) > > File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/text.py", > > line 298, in _get_layout > > ismath=False) > > File > > > "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gdk.py", > > line 309, in get_text_width_height_descent > > layout, inkRect, logicalRect = self._get_pango_layout(s, prop) > > File > > > "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gdk.py", > > line 283, in _get_pango_layout > > font_str = '%s, %s %i' % (prop.get_name(), prop.get_style(), size,) > > File > > > "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/font_manager.py", > > line 742, in get_name > > return ft2font.FT2Font(str(findfont(self))).family_name > > RuntimeError: Could not open facefile > > /home/bvr/Programs/matplotlib/lib/matplotlib/mpl-data/fonts/ttf/Vera.ttf; > > Cannot_Open_Resource > > > > The file exists, and is certainly read-able. The program "Fonty Python" > > even checked and said that the fonts in that folder were valid, and > > displayed samples. Looking back at discussion threads before, this error > has > > come up before back in 2007: > > > http://www.mail-archive.com/matplotlib-us...@lists.sourceforge.net/msg05229.html > > > > Any thoughts? > > Just a shot in the dark, but does it help to flush the font cache in > your .matplotlib dir? > > > rm -rf ~/.matplotlib/font*.cache > > JDH > -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Passing errorbar width arguments to bar/barh ?
On Wed, Jun 2, 2010 at 1:44 PM, Eric Firing wrote: > Done in svn 8369. Its usage is illustrated in barchart_demo.py. > Partially following your lead with subplots, I spelled it error_kw. > Fabulous, much appreciated! Regards, f -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel