[PyQt] Question about the segmentation fault induced by uic.loadUiTyp
Kyle Altendorf
sda at fstab.net
Mon Mar 19 13:59:15 GMT 2018
On March 19, 2018 5:35:49 AM EDT, lzf neu <lzfneu at live.com> wrote:
>Any suggestions will be appreciated and thank you very much.
As was mentioned:
>From: Florian Bruhin<mailto:me at the-compiler.org>
>On Mon, Mar 19, 2018 at 03:48:45AM +0000, lzf neu wrote:
>I'm guessing you need to create a QApplication first.
Do you see how the .ui is being loaded before the QApplication is created?
>> 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.
Do learn Python 3 (unless there's a need for py2 for legacy code or libraries) and use the latest PyQt5 wheels. You can install them in a venv.
https://docs.python.org/3/library/venv.html
Cheers,
-kyle
More information about the PyQt
mailing list