Registered Member
|
Hi.
I've been trying to create a simple plasma applet using Python by copying the example from here: https://projects.kde.org/projects/kde/k ... ts/pyhello However, this (and all other examples i've tried) crashes plasma and makes it reload all panels and widgets. If i load the applet using plasmoidviewer it also crashes with the following backtrace:
I'm running an Arch system with kde 4.11.0 (including python bindings) and python 2.7.5 and 3.3.2. Switching the default python environment doesn't seem to help. The only related bug i can find is https://bugs.kde.org/show_bug.cgi?id=323899 but that seems to be a build problem rather. Any help would be appreciated. |
Administrator
|
Is anything written to the terminal explaining why the script engine might be failing to load?
You may need to enable all debug output for this to work, which can be done using "kdebugdialog". Also, have you got both PyKDE4 and PyQt4 installed on your system?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
With debugging enabled i get the following:
I can't see anything wrong up to the point where plasmoidviewer crashes. I have python2-pyqt4 and kdebindings-python(2) installed. |
Administrator
|
This would appear to be a regression, or distribution specific issue in the Python bindings for Plasma. Can you please report this to your distribution, complete with the backtrace you have posted here?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Administrator
|
It may also be that one of the applet is throwing a Python exception, which can't be handled in Plasma and thus results in a crash. If you can, install "plasmoidviewer" then try to run the offending plasmoids from the command line (plasmoidviewer --list gives a list of all installed plasmoids) and report here.
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
I actually did use Plasmoidviewer
Regardless, after updating to KDE 4.11.1, the problem has gone away. |
Registered Member
|
Looks like I have the exact same problem with KDE 4.11.1 (Gentoo Linux x86_64) :/
What else did you upgrade with KDE ? |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]