I don't think this is related to Qt at all, but is illustrating some sort of bug in the font lookup code.
Can you try removing fontList.cache and trying again? I *believe* it lives in "C:\Documents and Settings\${YOURNAME}\Local Settings\.matplotlib" on Windows, but I'm not a regular Windows user. You may have to search for it. Also, set the rcParam['verbose.level'] to 'debug-annoying' and send the output. That may provide some clues as to how the font lookup is failing. Cheers, Mike Alexander Bruy wrote: > Hi, all > > I try to use last stable version of matplotlib 0.9.85.2 with PyQt 4.5.2 under > Windows XP Pro SP3, Python 2.5.2 and get error > > Traceback (most recent call last): > File "/home/alex/.qgis//python/plugins/statist/statist.py", line 114, in > doCalcStats > d = doStatist.dlgStatist( self.iface ) > File "/home/alex/.qgis//python/plugins/statist/doStatist.py", line 81, in > __init__ > self.canvas = FigureCanvas( self.figure ) > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4agg.py", > line 57, in __init__ > FigureCanvasQT.__init__( self, figure ) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4.py", > line 100, in __init__ > self.resize( w, h ) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4.py", > line 162, in resize > self.draw() > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4agg.py", > line 133, in draw > FigureCanvasAgg.draw(self) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 261, in draw > self.figure.draw(self.renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 762, in > draw > for t in self.texts: t.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 299, in draw > bbox, info = self._get_layout(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 193, in > _get_layout > 'lp', self._fontproperties, ismath=False) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 137, in get_text_width_height_descent > font = self._get_agg_font(prop) > File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 177, in _get_agg_font > font = FT2Font(str(fname)) > RuntimeError: Could not load facefile /; Unknown_File_Format > > Does this means that matplotlib don't work with QT 4.5.2 and I need latest > svn version? > With PyQt 4.4.3 same program work fine and there is no errors > > Thanks, > Alexander Bruy > > -- реклама ----------------------------------------------------------- > Поторопись зарегистрировать самый короткий почтовый адрес @i.ua > http://mail.i.ua/reg - и получи 1Gb для хранения писем > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users