most simple plasma script does not run

Bug #338996 reported by Isma
8
This bug affects 1 person
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://techbase.kde.org/Development/Tutorials/Plasma/Python/GettingStarted
I get following output in terminal:
---------------------------------------------------------------------------------------
plasmoidviewer hello-python
plasmoidviewer(7723) KServiceFactory::findServiceByDesktopPath: "findServiceByDesktopPath: not found"
Traceback (most recent call last):
  File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 21, in <module>
    from PyKDE4.plasma import Plasma
ImportError: No module named PyKDE4.plasma
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 77, in apport_excepthook
    pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 21, in <module>
    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

Isma (ismail-k)
description: updated
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

No, PyKDE4 on the whole is somewhat busted due to the python 2.6 transition.

Revision history for this message
Isma (ismail-k) wrote :

Will it last longer to be fixed?
Is there a possibility to fix it myself? Like recompile packages with python2.5 libs?
Or is the only way to switch back to intrepid?

Revision history for this message
Isma (ismail-k) wrote :

since the update of python-kde4 to 4.2.1-0ubuntu3 it works again. thanks a lot

Changed in kdebase-workspace:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.