[PyQt] segfault when calling PyQt4.QtGui.QIcon.themeSearchPaths()

Phil Thompson phil at riverbankcomputing.com
Wed Mar 6 22:14:22 GMT 2013


On Wed, 06 Mar 2013 14:51:35 -0500, Scott Kitterman <debian at kitterman.com>
wrote:
> I'm not if this is an actual bug or a user error, but a PyQt  bug was
just 
> filed in Debian:
> 
> bugs.debian.org/cgi-bin/bugreport.cgi?bug=702445
> 
> The reporter has 4.9.3, but I get the same with 4.9.6 and 4.10:
> 
> Python 2.7.3 (default, Jan 26 2013, 15:27:56) 
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import PyQt4.QtGui
>>>> PyQt4.QtGui.QIcon.themeSearchPaths()
> Segmentation fault (core dumped)

Almost certainly a user error/Qt "feature". Try creating a QApplication
instance first.

Phil


More information about the PyQt mailing list