id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port 31466,py27-matplotlib say py27-pyqt4 not installed when using qt-backend,bussonniermatthias@…,skymoo,"When trying to use matplotlib 27 with qt back end through the following example: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt.html matplotlib complain that pyqt is not installed {{{ Traceback (most recent call last): File ""embedding_in_qt.txt"", line 15, in from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as FigureCanvas File ""/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_qtagg.py"", line 12, in from backend_qt import qt, FigureManagerQT, FigureCanvasQT,\ File ""/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_qt.py"", line 21, in raise ImportError(""Qt backend requires pyqt to be installed."") ImportError: Qt backend requires pyqt to be installed. }}} still i'm (almost) sure matplotlib ans pyqt4 are correcty installed (+qt4 variants) {{{ py27-matplotlib @1.0.1_5+qt4 (active) py27-pyqt4 @4.8.4_0 (active) }}} looking at the rainsing error file we get: {{{ try:¬ import qt¬ except ImportError:¬ raise ImportError(""Qt backend requires pyqt to be installed."") }}} replacing by something like: import PyQt4.Qt as qt does allow the file to load correctly,but error are thrown later when trying to instanciate object. ",defect,closed,Normal,,ports,,invalid,"pyqt,matplotlib",,py27-matplotlib