[PyQt] pyQt5.7 and QtQuick

Sacha Schutz sacha at labsquare.org
Sat Oct 8 22:09:58 BST 2016


Hi

I can't make a qml application. I get a segmentation fault each time. It
only happen with QML. Everything works fine with QtWidgets.
I am using Python3.5 -  on kubuntu xenial.  I installed pyQt5-5.7 using pip
in a virtualenv.
Here is the code and the error .
Thanks to tell me what's wrong.

import sys
from PyQt5 import QtGui, QtQml, QtCore

if __name__ == "__main__":
    app = QtGui.QGuiApplication(sys.argv)
    engine = QtQml.QQmlApplicationEngine()
    engine.load(QtCore.QUrl("Test.qml"))

    sys.exit(app.exec_())


I get the following error :
[1]    14483 segmentation fault (core dumped)  python app.py

GDB return me :

Thread 5 "QSGRenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffde2c6700 (LWP 14542)]
__strstr_sse2_unaligned () at
../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40
40      ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: Aucun fichier
ou dossier de ce type.





-- 
-- 
Sacha schutz
Interne en Biologie moléculaire
Bioinformaticien
+33651571606
dridk.me
Fork me on github <https://github.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161008/21a16b0b/attachment.html>


More information about the PyQt mailing list