Author vstinner
Recipients corona10, petr.viktorin, tcaswell, vstinner
Date 2020-05-10.09:35:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589103324.47.0.312205165201.issue40574@roundup.psfhosted.org>
In-reply-to
Content
Ah, if I install Python, I can install PyQt5. I installed PyQt5:
   python -X faulthandler -c "import PyQt5.QtCore; PyQt5.QtCore.Qt.Key_Control""
doesn't crash.

I also tested the following hello world, it doesn't crash neither.
---
# https://pythonprogramminglanguage.com/pyqt5-hello-world/
import sys
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget
from PyQt5.QtCore import QSize    

class HelloWindow(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)

        self.setMinimumSize(QSize(640, 480))    
        self.setWindowTitle("Hello world - pythonprogramminglanguage.com") 

        centralWidget = QWidget(self)          
        self.setCentralWidget(centralWidget)   

        gridLayout = QGridLayout(self)     
        centralWidget.setLayout(gridLayout)  

        title = QLabel("Hello World from PyQt", self) 
        title.setAlignment(QtCore.Qt.AlignCenter) 
        gridLayout.addWidget(title, 0, 0)

if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    mainWin = HelloWindow()
    mainWin.show()
    sys.exit( app.exec_() )
---

I built Python with:

./configure --cache-file=../python-config.cache --with-pydebug CFLAGS=-O0 --prefix=/opt/py39 --with-system-expat --with-system-ffi
make
make install

What is your OS? How did you build Python? Which SIP and PyQt5 versions did you try?
History
Date User Action Args
2020-05-10 09:35:24vstinnersetrecipients: + vstinner, petr.viktorin, tcaswell, corona10
2020-05-10 09:35:24vstinnersetmessageid: <1589103324.47.0.312205165201.issue40574@roundup.psfhosted.org>
2020-05-10 09:35:24vstinnerlinkissue40574 messages
2020-05-10 09:35:24vstinnercreate