matplotlib with Qt4 backend

Celil Rufat <celil.rufat@...287...> 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?

eintr.patch (1.62 KB)

···

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

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 <jks@…397…> wrote:

Celil Rufat <celil.rufat@…1003…7…> 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