Le 02/10/2014 21:27, Joel Östblom a écrit :
> HI,
>
> I am not sure I should report this as a bug so checking here first if I
> am doing something wrong.
>
> The following import fails for me since upgrading to Spyder 2.3.1:
>
> |
> fromPyQt4.QtCoreimportQString
>
> "ImportError: cannot import name QString"
> |
>
> I upgraded Spyder via Anaconda when they recently released a new version
> (which did not update PyQt). I was going to report this problem on their
> forum first, but then I tried importing from ipython and ipython
> qtconsole when launched directly from terminal and the imports work fine
> in these cases.
>
> The Spyder ipython interpreter reports the same version of the Python
> and the Qt packages as when I launch ipython/ipython qtconsole from
> terminal:
>
> Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 2.2.0 -- An enhanced Interactive Python.
> Anaconda is brought to you by Continuum Analytics.
> Please check out:
http://continuum.io/thanks and
https://binstar.org
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object', use 'object??' for extra details.
>
> |
python strings. This is the default in python3. You can change this