Discussion:
Import Error after spyderlib update
skidzo
2011-05-30 13:21:57 UTC
Permalink
Hi I just tried the
Spyder 2.2.0dev

I have installed:

Python 2.6.6, Qt 4.7.0, PyQt 4.7.4 on Linux

and running an example with guiqwt-2.1.3, and guidata-1.3.1 installed

my previous version of spyder was 2.0.11 or something...

Traceback (most recent call last):
File "path to source file", line 25, in <module>
from guiqwt.plot import CurveWidgetMixin, CurveWidget, CurvePlot,
PlotManager
File "/usr/local/lib/python2.6/dist-packages/guiqwt/plot.py", line
114, in <module>
from guidata.qthelpers import create_action
File "/usr/local/lib/python2.6/dist-packages/guidata/qthelpers.py",
line 21, in <module>
from PyQt4.QtCore import SIGNAL, QString, Qt
ImportError: cannot import name QString

Does anyone know how to get the dev version running?
Pierre Raybaut
2011-05-30 14:57:23 UTC
Permalink
That's because Spyder v2.2 is running with PyQt API#2 (no QString
objects). Try disabling the Matplotlib patch in Preferences/Console.
(this unexpected behavior will be certainly be fixed very soon)

-Pierre
Post by skidzo
Hi I just tried the
Spyder 2.2.0dev
Python 2.6.6, Qt 4.7.0, PyQt 4.7.4 on Linux
and running an example with guiqwt-2.1.3, and guidata-1.3.1 installed
my previous version of spyder was 2.0.11 or something...
File "path to source file", line 25, in <module>
from guiqwt.plot import CurveWidgetMixin, CurveWidget, CurvePlot,
PlotManager
File "/usr/local/lib/python2.6/dist-packages/guiqwt/plot.py", line
114, in <module>
from guidata.qthelpers import create_action
File "/usr/local/lib/python2.6/dist-packages/guidata/qthelpers.py",
line 21, in <module>
from PyQt4.QtCore import SIGNAL, QString, Qt
ImportError: cannot import name QString
Does anyone know how to get the dev version running?
Johannes Eckstein
2011-05-30 17:42:05 UTC
Permalink
Hi Pierre,

Thanks now it works like before, just my little issue with the guiqwt
plotItemList and more than one curvePlot.

Thanks!

Johannes
Post by Pierre Raybaut
That's because Spyder v2.2 is running with PyQt API#2 (no QString
objects). Try disabling the Matplotlib patch in Preferences/Console.
(this unexpected behavior will be certainly be fixed very soon)
-Pierre
Post by skidzo
Hi I just tried the
Spyder 2.2.0dev
Python 2.6.6, Qt 4.7.0, PyQt 4.7.4 on Linux
and running an example with guiqwt-2.1.3, and guidata-1.3.1 installed
my previous version of spyder was 2.0.11 or something...
File "path to source file", line 25, in<module>
from guiqwt.plot import CurveWidgetMixin, CurveWidget, CurvePlot,
PlotManager
File "/usr/local/lib/python2.6/dist-packages/guiqwt/plot.py", line
114, in<module>
from guidata.qthelpers import create_action
File "/usr/local/lib/python2.6/dist-packages/guidata/qthelpers.py",
line 21, in<module>
from PyQt4.QtCore import SIGNAL, QString, Qt
ImportError: cannot import name QString
Does anyone know how to get the dev version running?
Loading...