[PyQt] Question about the segmentation fault induced by uic.loadUiTyp
Florian Bruhin
me at the-compiler.org
Mon Mar 19 05:21:18 GMT 2018
Hi,
On Mon, Mar 19, 2018 at 03:48:45AM +0000, lzf neu wrote:
> My simple testing script is as follows:
> #============================
> import sys
> from PyQt4 import QtCore, QtGui, uic
> uic.loadUiType("a.ui") # the GUI generated by qt-designer saved as a.ui
> #============================
>
> When running to the last line, an error ocurred and shows in the terminal:
> Segmentation fault (core dumped)
I'm guessing you need to create a QApplication first.
> My installing enviroments are: CentOs7, PyQt4_gpl_x11-4.12.1,
> qt-everywhere-opensource-src-4.8.7, sip-4.19.8, QtPy-1.4.0, and the
> python version of CentOs7 is 2.7.5
Let me note that those are ~3 years old and unsupported/end-of-life
since a while.
Florian
--
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180319/d04a11d2/attachment.sig>
More information about the PyQt
mailing list