OK. So I had some fun with binary-searching where the regression was and
found that it started on Steven Silvester's branch, on commit
c701aa66d2cc966477934a6442bf388fef85aadf [c701aa6]

The previous commit:
cba88ebbb5cfe0dfccafa9b7f2f4cd5fdbce2385 [cba88eb]
did not pose the same problem.

The problem was not evident until the merge

I found it using this code in the console:

import sip
sip.setapi("QString", 2)

I'll open an issue.

2016-03-22 21:09 GMT-03:00 Ronan Paixão <[email protected]>:

> Now this is strange: in internal console, the API is v2 as it should be.
> However, something is importing PyQt in the consoles. As they are different
> processes, they come by default (Python 2.7) with API v1, but since
> something loaded it, the API level can't be changed afterwards. This is
> different from the commit I was before.
>
> 2016-03-22 7:41 GMT-03:00 Ronan Paixão <[email protected]>:
>
>> Yesterday I updated my Spyder clone repo to HEAD and the PyQt app I was
>> developing started giving me API initialization problems (said PyQt was
>> already initialized as API v1).
>>
>> Did any recent changes drop the API version initialization for Python 2.7?
>>
>> 2014-07-03 10:02 GMT-03:00 Sylvain Corlay <[email protected]>:
>>
>>> Is there any other projects of Pierre still using API #1 (like guidata
>>> etc?)
>>>
>>> http://spyder-ide.blogspot.com/2011/06/pyqt-api-1-pyqt-api-2-and-pyside.html
>>>
>>> On Thursday, July 3, 2014 5:55:12 AM UTC-4, anatoly techtonik wrote:
>>>>
>>>> Are there any objections against dropping support for PyQt4 API #1?
>>>> Both PySide and Python 3 are
>>>> compatible with API #2 only. API #1 will still be supported in 2.3, but
>>>> the question is if anybody
>>>> still use it? Note that Spyder with IPython always uses API #2.
>>>>
>>>> I've made a pull request that removes import hacks that we maintain for
>>>> this compatibility:
>>>>
>>>> https://bitbucket.org/spyder-ide/spyderlib/pull-request/53/switch-to-pyqt4-api-2-and-remove-ipython/diff
>>>> Feel free to test it.
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "spyder" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/spyderlib.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to