Could you check your PyQt4 and PyKDE4 installation?
Do you also get a segmentation fault if you simply run a file containing this?
# We also do the other imports in functions to facilitate profiling. # Then commandline arguments and handlingfromPyKDE4.kdecoreimportKCmdLineArgs,KCmdLineOptions# And AboutData - moved here, so we don't need to pull in GUI stuff to check if we're the first instancefromPyKDE4.kdecoreimportki18n,KAboutData# KApplication for basicsfromPyKDE4.kdeuiimportKUniqueApplication#, KSessionManager # for handling sessions by hand, should quit not work.# SIGNALs and SLOTs for a clean shutdown. fromPyQt4.QtCoreimportSIGNAL,SLOT