From: Ryan M. <rm...@gm...> - 2011-01-03 16:29:59
|
On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale <dsd...@gm...> wrote: > On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rm...@gm...> wrote: >> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote: >>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py", >>> line 59, in <module> >>> from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString, >>> ImportError: cannot import name QString >>> >>> Looks like this backend hasn't been ported yet. >> >> I remember seeing this on Gentoo and, unfortunately, never tracked it >> down. However, it seems to me this is a problem with your PyQt4 >> install and Python 3, as QString should be found. > > It's not a problem with the PyQt4 installation. PyQt on python-3 uses > PyQt's new API, which uses python strings and does not provide > QString, QChar, and friends. > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis I stand corrected. I don't know what's worse, being so blatently wrong, or having wasted a bunch of time in the past trying to "fix" a "broken" install. Time to don ye olde paper bag... Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |