#31466: py27-matplotlib say py27-pyqt4 not installed when using qt-backend ------------------------------------------+--------------------------------- Reporter: bussonniermatthias@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 2.0.4 Component: ports | Version: 2.0.3 Keywords: pyqt,matplotlib | Port: py27-matplotlib ------------------------------------------+--------------------------------- When trying to use matplotlib 27 with qt back end through the following example: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt.h... matplotlib complain that pyqt is not installed {{{ Traceback (most recent call last): File "embedding_in_qt.txt", line 15, in <module> 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 <module> 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 <module> 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. -- Ticket URL: <https://trac.macports.org/ticket/31466> MacPorts <http://www.macports.org/> Ports system for Mac OS