Hi,
I just updated WinPython from 2.7.5.3 (64bit) to 2.7.6.2 (64bit) and found that python.exe crashes in PySide.QtUiTools.QUiLoader() call.
The following code snippet illustrates the problem:
from PySide import QtGui, QtUiTools import os import sys app = QtGui.QApplication(sys.argv) print("Ok1") loader = QtUiTools.QUiLoader() print("Ok2")
In WinPython-2.7.5.3 this script runs without problems.
Thanks,
Albert
I tried to figure out this problem further:
so if I remove (or rename) the
C:\WinPython-32bit-2.7.6.2\python-2.7.6\Lib\site-packages\PyQt4\plugins\designer\python\ folder (or make it empty) the above script just runs through (without crash).
Although I have no clue why this happens.
HTH,
Albert
Looking further for the reason of the problem, IMHO it's because of some sort of conflict between PyQt4 and PySide.
For example, the crash can be avoided if the file
is removed or contains paths pointing to PySide (instead of PyQt4).
Maybe I have overlooked the documentation, but I think a user should be warned that the content of qt.conf can have such unintended consequences :)
Albert
The bug is still present in WinPython 3.3.5.0 32bit. Any use of QtUiTools.QUiLoader() from PySide causes an immediate crash of Python. Renaming/deleting qt.conf fixes the problem.