The following code causes a segmentation code. import sys from PyQt4 import uic, QtGui u = uic.loadUI('watchList.ui') dmesg: [172345.395915] python[22610]: segfault at 0 ip 00007fd91e1bdc60 sp 00007fff27187468 error 4 in libc-2.9.so[7fd91e13d000+168000]