Issues with the Qt4Agg backend and IPython on OS X

Hi All,

I was excited to see that a Qt4 backend is available for matplotlib - I'm running 0.87.7. So, I installed PyQt4 from source from the riverbankcomputing website (OSX comes with the Qt framework already installed), and tried to give it a go.

First off I got the error:

"No module named qt"

So, I went into the Shell.py script in the IPython subdirectory of site-packages and changed all instances of "import qt" to "from PyQt4 import Qt as qt". It fixed the module not found error, but now
I get the following error in Shell.py

"TypeError: too many arguments to QTimer.start(), 1 at most expected"

I realize that this is more likely an error with ipython, but I'm wondering if anyone else has seen this. If so, have people verified that ipython (0.80) is indeed compatible with the Qt4Agg backend.

Any ideas how I can fix this?

Thanks,
Aaron

Hi All,

I was excited to see that a Qt4 backend is available for matplotlib -
I'm running 0.87.7. So, I installed PyQt4 from source from the
riverbankcomputing website (OSX comes with the Qt framework already
installed), and tried to give it a go.

First off I got the error:

"No module named qt"

So, I went into the Shell.py script in the IPython subdirectory of
site-packages and changed all instances of "import qt" to "from PyQt4
import Qt as qt".

There is already support for the qt4 backend in ipython, you should not have
to make any changes to (recent versions of) ipython.

It fixed the module not found error, but now
I get the following error in Shell.py

"TypeError: too many arguments to QTimer.start(), 1 at most expected"

I realize that this is more likely an error with ipython, but I'm
wondering if anyone else has seen this. If so, have people verified
that ipython (0.80) is indeed compatible with the Qt4Agg backend.

I have been using the qt4 backend with ipython for maybe a year now, currently
ipython 0.8.0. What is the output of "ipython -Version"?

···

On Tuesday 08 May 2007 02:43:45 pm Aaron Hoover wrote:

Are you setting your backend to qt4agg and not qtagg?

···

On Tuesday 08 May 2007 02:43:45 pm Aaron Hoover wrote:

Hi All,

I was excited to see that a Qt4 backend is available for matplotlib -
I'm running 0.87.7. So, I installed PyQt4 from source from the
riverbankcomputing website (OSX comes with the Qt framework already
installed), and tried to give it a go.

First off I got the error:

"No module named qt"