Bug 380884 - VERY STRONG: All python3 qt programs are broken on 5.8.7 LTS !!!
Summary: VERY STRONG: All python3 qt programs are broken on 5.8.7 LTS !!!
Status: RESOLVED NOT A BUG
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (other bugs)
Version First Reported In: unspecified
Platform: Neon Linux
: NOR grave
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-06 10:28 UTC by picotmathieu
Modified: 2017-06-07 09:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description picotmathieu 2017-06-06 10:28:11 UTC
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
Comment 1 Jonathan Riddell 2017-06-06 10:53:48 UTC
what applications are you using to test it?

apt-cache policy python-qt4
apt-cache policy python-sip
Comment 2 Jonathan Riddell 2017-06-06 11:36:42 UTC
It works for me to run a pyqt app on latest Neon User LTS in virtualbox
Comment 3 Jonathan Riddell 2017-06-06 11:37:52 UTC
tested with both python2 and 3
Comment 4 picotmathieu 2017-06-06 18:35:35 UTC
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
Comment 5 picotmathieu 2017-06-06 18:53:52 UTC
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
Comment 6 picotmathieu 2017-06-07 09:38:53 UTC
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.