most simple plasma script does not run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebase-workspace (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Jaunty (9.04):
When I try to run the most simple python plasmoid example from http://
I get following output in terminal:
-------
plasmoidviewer hello-python
plasmoidviewer(
Traceback (most recent call last):
File "/usr/share/
from PyKDE4.plasma import Plasma
ImportError: No module named PyKDE4.plasma
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
pr[
AttributeError: 'module' object has no attribute 'argv'
Original exception was:
Traceback (most recent call last):
File "/usr/share/
from PyKDE4.plasma import Plasma
ImportError: No module named PyKDE4.plasma
-------
And the window which should show the plasmoid says: Could not create a python scriptengine for hello-python.
The needed files all seem to be installed.
Propably the Problem is that some Packages are compiled with python 2.5 like:
python-kde4
and some with python 2.6 libraries??? (like python-plasma)
I wrote the output to the troubleshooting section in the above mentioned wiki (techbase). Someone wrote as an answer:
-------
Solution: You have the Python ScriptEngine present on your system, but not the whole PyKDE4 installed, or your PyKDE4 was not installed with Plasma support. Install or compile PyKDE4 (python-kde4 on openSUSE) and the problem should be solved.
-------
So maybe the package python-kde4 is compiled without plasma support?
Version of python-plasma: 4.2.1a-0ubuntu2
Version of python-kde4: 4.2.1-0ubuntu2
Installed python versions: 2.6.1 , 2.5.4-1ubuntu2 and 3.0, I cold not remove 2.5 without breaking dependencies
No, PyKDE4 on the whole is somewhat busted due to the python 2.6 transition.