Red Hat Bugzilla – Bug 1480727
Can't import PyKDE4.kdeui
Last modified: 2017-08-11 21:01:17 EDT
It appears that something has changed in PyQt4 which prevents PyKDE4 from working properly. Just doing "import PyKDE4.kdeui" will fail:
Python 3.6.2 (default, Jul 19 2017, 13:09:21)
[GCC 7.1.1 20170622 (Red Hat 7.1.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyKDE4.kdeui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: PyKDE4.kdeui cannot import type 'QList<QPair<QString,QString> >' from PyQt4.QtCore
I'm having no luck figuring out where this is coming from; I suspect it's down in the compiled C code generated by the bindings.
Confirmed, it affects both python(2) and python3 bindings similarly.