Kde Neon 5.8.7 LTS (system up to date) All my python qt5 or qt programs are broken. Somes crash at start with segmentation fault. Somes crash at start with this kind of error: from PyQt5.QtWidgets import QApplication, [...] RuntimeError: the sip module implements API v11.0 to v11.3 but the module requires API v12.1
what applications are you using to test it? apt-cache policy python-qt4 apt-cache policy python-sip
It works for me to run a pyqt app on latest Neon User LTS in virtualbox
tested with both python2 and 3
Tested with all applications that I know they use python3 and qt (carla, cadence, qarte), note I have the KXStudio repositories installed. Simple test I tried: houston@houston-MS-74562:~$ python3 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt5.QtWidgets import QApplication Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: the sip module implements API v11.0 to v11.3 but the module requires API v12.1 >>> from PyQt4.QtGui import QApplication Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: the sip module implements API v11.0 to v11.3 but the module requires API v12.1
Using python (2) and import QApplication seems to work. for the terminal results: apt-cache policy python-qt4 python-qt4: Installé : 4.12+dfsg-1+16.04+xenial+build2 Candidat : 4.12+dfsg-1+16.04+xenial+build2 Table de version : *** 4.12+dfsg-1+16.04+xenial+build2 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 100 /var/lib/dpkg/status 4.12+dfsg-1+16.04+xenial+build1 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 4.11.4+dfsg-1build4 500 500 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages apt-cache policy python-sip python-sip: Installé : 4.19.2+dfsg-1+16.04+xenial+build3 Candidat : 4.19.2+dfsg-1+16.04+xenial+build3 Table de version : *** 4.19.2+dfsg-1+16.04+xenial+build3 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 100 /var/lib/dpkg/status 4.18.1+dfsg-2+16.04+build3 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 4.17+dfsg-1build1 500 500 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages apt-cache policy python3-pyqt4 python3-pyqt4: Installé : 4.12+dfsg-1+16.04+xenial+build2 Candidat : 4.12+dfsg-1+16.04+xenial+build2 Table de version : *** 4.12+dfsg-1+16.04+xenial+build2 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 100 /var/lib/dpkg/status 4.12+dfsg-1+16.04+xenial+build1 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 4.11.4+dfsg-1build4 500 500 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages apt-cache policy python3-sip python3-sip: Installé : 4.19.2+dfsg-1+16.04+xenial+build3 Candidat : 4.19.2+dfsg-1+16.04+xenial+build3 Table de version : *** 4.19.2+dfsg-1+16.04+xenial+build3 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 100 /var/lib/dpkg/status 4.18.1+dfsg-2+16.04+build3 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 4.17+dfsg-1build1 500 500 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages apt-cache policy python3-pyqt5 python3-pyqt5: Installé : 5.8.2+dfsg-1+16.04+xenial+build13 Candidat : 5.8.2+dfsg-1+16.04+xenial+build13 Table de version : *** 5.8.2+dfsg-1+16.04+xenial+build13 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 100 /var/lib/dpkg/status 5.7+dfsg-3+16.04+build8 500 500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages 5.5.1+dfsg-3ubuntu4 500 500 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
That's allright. I finally find that is was user specific. I had an old configuration, I didn't remember. I remove python dirs in ~/.local/lib/ and it works perfectly. Sorry for the inconvenience.