Re: [Matplotlib-users] matplotlib with Qt4 backend

2009-11-13 Thread Celil Rufat
Thanks!

I can confirm the patches fixes the issue on my computer.

Celil

On Thu, Nov 12, 2009 at 9:33 AM, Jouni K. Seppänen j...@iki.fi wrote:

 Celil Rufat celil.ru...@gmail.com writes:

  However, when I try one of the Qt4 examles:
 [...]
File
 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py,
  line 303, in get_fontconfig_fonts
  status, output = commands.getstatusoutput(fc-list file)
File
 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/commands.py,
  line 56, in getstatusoutput
  text = pipe.read()
  IOError: [Errno 4] Interrupted system call

 I believe the attached patch (already committed to the trunk) should fix
 this on Python 2.6, but I don't have a Qt installation to try it out
 with. Can you try this on your system?

 --
 Jouni K. Seppänen
 http://www.iki.fi/jks



 --
 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


--
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


[Matplotlib-users] matplotlib with Qt4 backend

2009-11-11 Thread Celil Rufat
I just installed matplotlib on Snow Leopard 10.6 with the Qt4 backend (via
macports). However, when I try one of the Qt4 examles:

python
/opt/local/share/py26-matplotlib/examples/user_interfaces/embedding_in_qt4.py

I get the following error message:

Traceback (most recent call last):
  File
/opt/local/share/py26-matplotlib/examples/user_interfaces/embedding_in_qt4.py,
line 70, in update_figure
self.draw()
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_qt4agg.py,
line 130, in draw
FigureCanvasAgg.draw(self)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_agg.py,
line 314, in draw
self.figure.draw(self.renderer)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/artist.py,
line 46, in draw_wrapper
draw(artist, renderer, *kl)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py,
line 773, in draw
for a in self.axes: a.draw(renderer)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/artist.py,
line 46, in draw_wrapper
draw(artist, renderer, *kl)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py,
line 1735, in draw
a.draw(renderer)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/artist.py,
line 46, in draw_wrapper
draw(artist, renderer, *kl)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py,
line 742, in draw
tick.draw(renderer)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/artist.py,
line 46, in draw_wrapper
draw(artist, renderer, *kl)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py,
line 196, in draw
self.label1.draw(renderer)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/text.py,
line 515, in draw
bbox, info = self._get_layout(renderer)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/text.py,
line 272, in _get_layout
'lp', self._fontproperties, ismath=False)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_agg.py,
line 158, in get_text_width_height_descent
font = self._get_agg_font(prop)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_agg.py,
line 195, in _get_agg_font
fname = findfont(prop)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py,
line 1308, in findfont
_rebuild()
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py,
line 1292, in _rebuild
fontManager = FontManager()
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py,
line 984, in __init__
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py,
line 341, in findSystemFonts
for f in get_fontconfig_fonts(fontext):
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py,
line 303, in get_fontconfig_fonts
status, output = commands.getstatusoutput(fc-list file)
  File
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/commands.py,
line 56, in getstatusoutput
text = pipe.read()
IOError: [Errno 4] Interrupted system call

Any ideas on what could be causing this?

celil
--
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