I'm using PyQt4 v4.7.3. Check this out: Python 2.7.1 (r271:86832, Dec 1 2010, 23:37:45) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtGui >>> import uuid >>> uuid.uuid4() Segmentation fault If I import uuid before QtGui, though, then it works fine.