Plasmoid problems

Since the first time I installed openSuse I had some problems with new installed plasmoids.

Problem 1:
Could not create a python scriptengine
Most people relate this error to some missing python packages. Even though it’s true (you need the python-kde4 package), it’s not always the problem.
The scriptengine is also thrown when the python script itself is won’t work for some reason. To ‘debug’ the plasmoid there are two things to do. First it trying to get the python script working and second is to restart plasma in a console so we can follow the output:

kquitapp plasma
plasma

Let’s take the gmail-plasmoid, which I managed to fix. After running the gmail.py script with python

python ~/.kde4/share/apps/plasma/plasmoids/gmail-plasmoid/content/code/gmail.py

I got an error that feedparser could not be included.
To fix this, I installed the python-feedparser package, but that didn’t seem to work for a reason (maybe I needed to reboot). Anyway, it also appears that the gmail-plasmoid comes with the feedparser package, so I suggest you install that one:

python ~/.kde4/share/apps/plasma/plasmoids/gmail-plasmoid/content/code/feedparser/setup.py install

After fixing that, it’s time to restart plasma (maybe a reboot), add the plasmoid and see if it gives any errors.
Yesterday the gmail-plasmoid returned an error that there was no parse() function in ‘module’, now it’s gone… don’t know why but I’m happy it’s gone.

Problem 2
When adding a new plasmoid from kde-looks.org I get two errors:

Installation of /tmp/kde-username///92573-cpufreq.plasmoid failed!

and

Installation of /tmp/kde-username/// failed!

and this is the full plasma output:

Object::connect: Attempt to bind non-signal TaskManager::TaskGroup::editRequest()                           
Successfully installed /tmp/kde-phillip///92573-cpufreq.plasmoid                                            
tru::1:1243775604:0:3:1:5                                                                                   
plasma(6265)/kdecore (KService) KServicePrivate::init: The desktop entry file  "/usr/share/kde4/services/sysinfo.protocol"  has Type= "Application"  but no Exec line                                                   

plasma(6265)/libplasma Plasma::Package::installPackage: Could not create package root directory: "plasma/plasmoids/"                                                                                                    
Object::connect: Attempt to bind non-signal TaskManager::TaskGroup::editRequest()                           
plasma(6265)/libplasma Plasma::Package::installPackage: Could not create package root directory: "plasma/plasmoids/"                                                                                                    
Object::connect: Attempt to bind non-signal TaskManager::TaskGroup::editRequest()  

In the end the plasmoid is installed (it doesn’t work tough, but I get this error with every plasmoid, even the ones that do work).

Problem 3:
After installing some plasmoids from the repo and adding it to the desktop, I get this error:

Could not find requested component:

Don’t know why, don’t know how to fix this, but I hope someone knows how because the repo has some nice widgets

Let’s see your repo’s

zypper lr --details
#  | Alias              | Name                                                | Enabled | Refresh | Priority | Type   | URI                                                                                   | Service
---+--------------------+-----------------------------------------------------+---------+---------+----------+--------+---------------------------------------------------------------------------------------+--------
1  | KDE4.2_Repo        | KDE4.2 Repo                                         | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/42/openSUSE_11.1/                      |
2  | KDE_4.2_Community  | KDE 4.2 Community                                   | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.1_KDE_42/  |
3  | KDE_4.2_Playground | KDE 4.2 Playground                                  | Yes     | Yes     |  120     | rpm-md | http://download.opensuse.org/repositories/KDE:/KDE4:/Playground/openSUSE_11.1_KDE_42/ |
4  | openSUSE 11.1-0    | openSUSE 11.1-0                                     | No      | No      |   99     | yast2  | cd:///?devices=/dev/sr0                                                               |
5  | repo               | NVIDIA Repository                                   | Yes     | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/11.1                                              |
6  | repo-debug         | openSUSE-11.1-Debug                                 | No      | Yes     |  120     | NONE   | http://download.opensuse.org/debug/distribution/11.1/repo/oss/                        |
7  | repo-non-oss       | openSUSE-11.1-Non-Oss                               | Yes     | Yes     |  120     | yast2  | http://download.opensuse.org/distribution/11.1/repo/non-oss/                          |
8  | repo-oss           | openSUSE-11.1-Oss                                   | Yes     | Yes     |  120     | yast2  | http://download.opensuse.org/distribution/11.1/repo/oss/                              |
9  | repo-source        | openSUSE-11.1-Source                                | No      | Yes     |  120     | NONE   | http://download.opensuse.org/source/distribution/11.1/repo/oss/                       |
10 | repo-update        | openSUSE-11.1-Update                                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.1/                                             |
11 | repo_1             | openSUSE BuildService - Wine CVS Builds             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_11.1/              |
12 | repo_2             | openSUSE BuildService - OpenOffice.org              | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_11.1/       |
13 | repo_3             | openSUSE BuildService - Virtualization (VirtualBox) | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Virtualization:/VirtualBox/openSUSE_11.1/   |
14 | repo_4             | openSUSE BuildService - Mozilla                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.1/                      |
15 | repo_5             | openSUSE BuildService - Database                    | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/server:/database/openSUSE_11.1/             |
16 | repo_6             | openSUSE BuildService - PHP                         | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/server:/php/openSUSE_11.1/                  |
17 | repo_7             | VideoLan Repository                                 | Yes     | Yes     |   99     | rpm-md | http://download.videolan.org/pub/videolan/vlc/SuSE/11.1/                              |
18 | repo_8             | Packman Repository                                  | Yes     | Yes     |   99     | rpm-md | http://ftp.skynet.be/pub/packman/suse/11.1/                 

Your repo’s look OK. Although Videolan should be disabled (though it’s not related to your question).

I would really recommend adding Plasmoids from the repo’s rather than from kde-look. Of course you should be able to add them, but I always find it problematic myself. You post a question to the package via kde-look.

Problem is that the plasmoids added from the repo don’t work at all, they are in the list, but the scripts (and other components) seem to be missing :frowning:

They work for me.

Check to see you don’t have red packages in your system (software management)

You need to install qt4-qtscript. That’s all. Look for it in software installer and it will work.

Installed qt4-qtscript, and repo plasmoids still dont’t work :frowning:

Plasma doesn’t return anything usefull except:

plasma(5526)/libplasma Plasma::AppletPrivate::mainConfigGroup: requesting config for “Unknown Widget” without a containment!

if I do a

python ~/.kde4/share/apps/plasma/plasmoids/gmail-plasmoid/content/code/gmail.py

all I get is “Segmentation Fault”…

Anyone else able to get python widgets working

I’ve got it working :wink: .
A segmentation fault can be anything, but usualy has something to do with overflows or array out of bounds errors.

Finding the exact source of the problem might take a while, so you’d better look for another (newer or older) version of this plasmoid and see if that one works.

You need python-devel
it will install glibc-devel and linuxglibc-devel as dep.
after that relogin in kde
after that will work gmail-plasmoid, veromix and magic folder

Not sure if bumping this old thread is a good idea, but

  1. this thread; along with
  2. https://bugzilla.novell.com/show_bug.cgi?id=721280#c5 on opensuse 11.4; and
  3. my same experience attempting to install Simple Countdown v1.5 Python Plasmoid on opensuse 12.1

all suggest that this has been a long-standing, complicated issue. Installing python-devel package on opensuse 12.1 works for me. As a developer, I don’t object so much to this. Users not intending to do any Python development must still install it–even just to use a simple countdown widget.