PDA

View Full Version : Plasmoids issue


Shura
October 16th, 2009, 15:06
Hi, all

I have installed FreeBSD8.0 and KDE4.3.1 and found there does not work plasmoids, which are written in python. Error is: Could not create a python scriptengine for 'plasmoid name'
Native plasmoids work well.
As I unerstand I need plasmascript.py library, but I can't find it. :(
Anybody know how to install python scriptengine?

DutchDaemon
October 16th, 2009, 15:49
This turns up in a search:

devel/kdebindings4-python Meta port of Python bindings for KDE
devel/kdebindings4-python-krosspython Kross Python scripting library
devel/kdebindings4-python-pykde4 Python bindings for KDE

You'll have to investigate by yourself, I have no idea.

Shura
October 16th, 2009, 19:22
I have already installed this ports

DutchDaemon
October 16th, 2009, 23:41
FWIW: http://techbase.kde.org/Development/Tutorials/Plasma/Python/GettingStarted

Shura
October 17th, 2009, 06:42
I sow it. This tutorial does not work too.When I tried execute script line by line, it display error in line 'from PyKDE4 import plasmascript'

true
October 26th, 2009, 15:45
I can confirm this, plasmascript is not available even with kdebindings4 installed.

lnxsrt
April 6th, 2010, 01:27
I know this is an old thread, but I have figured out what the issue is and have python plasmoids working now in KDE 4.3.5.

Step 1:
Install devel/py-qt4
Install devel/kdebindings4-python-pykde4

Step 2:
Re-compile x11/kdebase4-workspace after removing the following from the Makefile:
-DWITH_PyKDE4:BOOL=OFF
Make sure when the configure messages are passing by that Python support is enabled.

Step 3:
cp /usr/local/lib/python2.6/site-packages/PyKDE4/plasmascript.py* /usr/local/kde4/lib/python2.6/site-packages/PyKDE4/

This last step is the crux of the whole issue. plasmascript.py[c] is put in the wrong place so KDE4 can't find it!

Hope this helps someone...