Hi All,
I have tried the sample PySide code given at http://www.scipy.org/Cookbook/Matplotlib/PySide
the below excerpt is from my “Python Shell” for this sample code, which gives this error,
“ImportError: Warning: formlayout requires PyQt4 >v4.3”
It seems that it is looking for PyQt; but the whole point of using PySide is to avoid using PyQt.
Any help is appreciated.
– Armagan
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
import sys
import matplotlib
matplotlib.use(‘Qt4Agg’)
import pylab
Traceback (most recent call last):
File “<pyshell#3>”, line 1, in
import pylab
File “C:\Python27\lib\site-packages\pylab.py”, line 1, in
from matplotlib.pylab import *
File “C:\Python27\lib\site-packages\matplotlib\pylab.py”, line 263, in
from matplotlib.pyplot import *
File “C:\Python27\lib\site-packages\matplotlib\pyplot.py”, line 95, in
new_figure_manager, draw_if_interactive, show = pylab_setup()
File “C:\Python27\lib\site-packages\matplotlib\backends_init_.py”, line 25, in pylab_setup
globals(),locals(),[backend_name])
File “C:\Python27\lib\site-packages\matplotlib\backends\backend_qt4agg.py”, line 12, in
from backend_qt4 import QtCore, QtGui, FigureManagerQT,
FigureCanvasQT,
File “C:\Python27\lib\site-packages\matplotlib\backends\backend_qt4.py”, line 18, in
import matplotlib.backends.qt4_editor.figureoptions as figureoptions
File “C:\Python27\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py”, line 11, in
import matplotlib.backends.qt4_editor.formlayout as formlayout
File “C:\Python27\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py”, line 51, in
raise ImportError, “Warning: formlayout requires PyQt4 >v4.3”
ImportError: Warning: formlayout requires PyQt4 >v4.3