[MacPorts] #31466: py27-matplotlib say py27-pyqt4 not installed when using qt-backend

MacPorts noreply at macports.org
Sun Oct 9 23:31:48 PDT 2011


#31466: py27-matplotlib say py27-pyqt4 not installed when using qt-backend
------------------------------------------+---------------------------------
 Reporter:  bussonniermatthias@…          |       Owner:  ram@…           
     Type:  defect                        |      Status:  new             
 Priority:  Normal                        |   Milestone:                  
Component:  ports                         |     Version:                  
 Keywords:  pyqt,matplotlib               |        Port:  py27-matplotlib 
------------------------------------------+---------------------------------

Comment(by bussonniermatthias@…):

 Your code work ok.
 this one doesn't:
 {{{
 >>> import matplotlib  #optionnal, but to be sure
 >>> matplotlib.use("Qt4Agg") #optionnal, but to be sure
 >>> from PyQt4.Qt import *
 >>> from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as
 FigureCanvas
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   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.
 }}}

 some matplotlib example (first post link) also failed, but, this might be
 an error in the example.
 {{{
 import sys, os, random
 from qt import *  # <---- doesn't import

 from numpy import arange, sin, pi
 from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as
 FigureCanvas
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/31466#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list