Menu

#102 python.exe (WinPython 2.7.6.2 both 32/64-bit) crashes in PySide.QtUiTools.QUiLoader()

v2.7.6.1
New
None
Critical
Defect
2014-06-03
2014-01-09
algo99
No

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

Discussion

  • algo99

    algo99 - 2014-01-19

    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

     
  • algo99

    algo99 - 2014-02-10

    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

    c:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\qt.conf
    

    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

     
  • GHPS

    GHPS - 2014-06-03

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.