On Tuesday 01 May 2007 09:26:00 +0800, "haiyun jiang" wrote:

> I am having some serious problems with *PyQT4*,
> when i run pyqt script, I always get 'Segmentation *fault*'.
>
> the script is simple:
> ======================
> %less qttest.py
> from *PyQt4* import QtGui, QtCore
> import sys
>
> if __name__ == '__main__':
>         app = QtGui.QApplication(sys.argv)
>         w = QtGui.QMainWindow()
>         w.show()
>         app.exec_()
> ======================

OK. Just to clarify things for other readers, I noticed from your message to
comp.lang.python that you're actually using the line

  from PyQt4 import QtGui, QtCore

without the asterisks in the quote above.

> When I run it , it crashes.
> ======================
> %python qttest.py
> Segmentation *fault* (core dumped)
> =====================

[...]

> And the output of the gdb is :
> ===========================================
> %gdb --args python qttest.py
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.

[...]

> Program received signal SIGSEGV, Segmentation *fault*.
> [Switching to Thread 0x811f000 (LWP 100099)]
> 0x2887cb6d in typeinfo name for sipQApplication () from /usr/local/lib/
> python2.4/site-packages/*PyQt4*/QtGui.so
> (gdb)
> ==========================================

Without debugging symbols, this is as far as we can get. It would be
interesting to see exactly what is failing.

> My system is FreeBSD 6.2 release, i386, all softwares were installed
> from ports.
> and the Qt4 examples/demos work perfectly.
> It seems to have no useful hint at google.

I noticed that the maintainer of the FreeBSD ports of PyQt4 is reading this
list. Perhaps he has some suggestions for ways to solve this problem.

David

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to