FS#24507 - [KDE] 4.7 Python plasmoids fail saying "could not create a python ScriptEngine"

Attached to Project: Arch Linux
Opened by Yaohan Chen (hagabaka) - Monday, 30 May 2011, 19:18 GMT
Last edited by Andrea Scarpino (BaSh) - Wednesday, 29 June 2011, 13:32 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
With [kde-unstable] packages, KDE plasmoids written in python (I have tried veromix and gmail-plasmoid) are failing to load. They show up as icons with red boxes with cross marks, and do not have normal functionality.

Additional info:
* package versions:
kdebindings-python 4.6.80-1 (kde-unstable)
kdebase-workspace 4.6.80-2 (kde-unstable)
python2-pyqt 4.8.4-1 (extra)
kdeplasma-addons-applets-veromix 0.11.2-1 (AUR)
gmail-plasmoid 0.7.16 (no Arch package, website at bottom)

* error output from plasmoidviewer:
% cd /usr/share/apps/plasma/plasmoids/veromix-plasmoid; plasmoidviewer
plasmoidviewer(11390)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(11390)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(11390)/python (plugin): Failed to import module
Traceback (most recent call last):
File "/usr/share/apps/plasma_scriptengine_python/pyappletscript.py", line 20, in <module>
from PyQt4.QtCore import *
ImportError: /usr/lib/python2.7/site-packages/PyQt4/QtCore.so: undefined symbol: PyBool_Type

Steps to reproduce:
With kde-unstable packages, install kdeplasma-addons-applets-veromix from AUR and/or gmail-plasmoid from http://kde-look.org/content/show.php/gmail-plasmoid?content=101229 , and add either plasmoid to a panel or system tray.

Related reports:
Reported to veromix maintainer http://code.google.com/p/veromix-plasmoid/issues/detail?id=54
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Wednesday, 29 June 2011, 13:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  kdebindings-python 4.6.90-2
Comment by Antonio Rojas (arojas) - Tuesday, 31 May 2011, 06:16 GMT
system-config-printer-kde throws the same error. Everything works fine in 4.6.3 with the same pyqt.
Comment by Cedric Bellegarde (gnumdk) - Tuesday, 28 June 2011, 15:01 GMT
Same here with any python plasmoid
Comment by Andrea Scarpino (BaSh) - Tuesday, 28 June 2011, 15:31 GMT
Yep, still I don't get the problem here
Comment by Cedric Bellegarde (gnumdk) - Tuesday, 28 June 2011, 21:17 GMT
downgrading to kdebindings-python-4.6.4-1 fix issue.
Comment by Philipp Schmidt (hefeweiz3n) - Wednesday, 29 June 2011, 09:46 GMT
On the console I get the following output:

plasma-desktop(8403)/python (plugin): Failed to import module
Traceback (most recent call last):
File "/usr/share/apps/plasma_scriptengine_python/pyappletscript.py", line 20, in <module>
from PyQt4.QtCore import *
ImportError: /usr/lib/python2.7/site-packages/PyQt4/QtCore.so: undefined symbol: PyBool_Type

Downgrading to 4.6.4 even under 4.7 works.

Loading...