![]() Registered Member ![]()
|
I was trying out the first plasma with python tutorial on techbase. http://techbase.kde.org/Development/Tut ... ingStarted
I'm getting the following error: "Could not create a python scriptengine for the Hello Python widget" I'm using Kubuntu 8.10 with KDE 4.2 RC from ppa. Here's a traceback: plasmoidviewer(7905) KServiceFactory::findServiceByDesktopPath: "findServiceByDesktopPath: not found" plasmoidviewer(7905): couldn't create slave: "Unable to create io-slave: klauncher said: Unknown protocol ''. " Traceback (most recent call last): File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 19, in from PyQt4.QtCore import * ImportError: /usr/lib/python2.5/site-packages/PyQt4/QtCore.so: undefined symbol: PyExc_ValueError Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook from apport.packaging_impl import impl as packaging File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in from apport.report import Report File "/usr/lib/python2.5/site-packages/apport/report.py", line 14, in import subprocess, tempfile, os.path, urllib, re, pwd, grp, os, sys File "/usr/lib/python2.5/subprocess.py", line 401, in import select ImportError: /usr/lib/python2.5/lib-dynload/select.so: undefined symbol: PyExc_ValueError Original exception was: Traceback (most recent call last): File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 19, in from PyQt4.QtCore import * ImportError: /usr/lib/python2.5/site-packages/PyQt4/QtCore.so: undefined symbol: PyExc_ValueError
vinodkhare, proud to be a member of KDE forums since 2008-Dec.
|
![]() Administrator ![]()
|
Those "undefined symbol" lines indicate that there is something odd going on with your PyQt install... What version of PyQt are you using?
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
I can confirm this with Kubuntu Jaunty Alpha (PyQt 4.4.4-3ubuntu2).
|
![]() Administrator ![]()
|
I'm unable to reproduce this with openSUSE. Might be a PyQt issue in Kubuntu?
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
I'm using PyQt 4.4.4-2ubuntu1. It's likely it's a Kubuntu problem. Any idea where we can report this?
![]()
vinodkhare, proud to be a member of KDE forums since 2008-Dec.
|
![]() Administrator ![]()
|
Most likely on Kubuntu's bug tracker, I'd say. Or perhaps poke around in IRC first.
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
I have a similar problem under openSUSE 11.1. Does anyone have a solution for this problem?
http://sleepwalkers.ptsa.de/~kacper/plasma-python.jpg |
![]() KDE Developer ![]()
|
Works for me under Gentoo. If you look at the very bottom of the page. It explains the reason and how to fix it.
|
![]() Registered Member ![]()
|
I am having the same problem too. If there is a solution, I hope someone posts it.
|
![]() Registered Member ![]()
|
I'm also using Kubuntu 8.10 with KDE 4.2 RC from ppa and have the same problem. I had a look at the troubleshooting section at the bottom of the page but really wanted to use the package management system to do the install (work machine which is managed this way).
This is what I found;
Does that help anyone? I don't have the time this morning to dig further. |
![]() Registered Member ![]()
|
I initially had this problem too. I run a Gentoo system, and noticed that the 2 files (plasma_importer.py, plasmascript.py) mentioned in that tutorial were missing from my system. I had to install the Gentoo package plasma-workspace again, with python support enabled to get them. Sorry, I have no idea what steps to take for other distros, but I suspect that everyone with this problem is missing those two files. It looks like they don't get installed by default, in most cases.
Last edited by platoJones on Sun Feb 01, 2009 10:25 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
It depends on python version.
Qt and KDE - bidnings work with python2.5 now. In Jaunty we have python2.6 It's better to set /usr/bin/python2.5 in plasmoid. |
![]() Registered Member ![]()
|
Hi
I had exactly this error with some python plasmoids and I have just installed the packet python-plasma from ubuntu repository. It works for me, I have KDE 4.2.2 from ppa repository. |
![]() Registered Member ![]()
|
I'm getting this error in openSUSE 11.1 KDE.....I checked this page and I don't have the files mentioned:
I would really like to get to the bottom of this, as all of the best plasmoids are python-coded ![]() I've installed this package:
however I don't see a 'python-kdebase4' when I search using my package manager. Maybe I'm doing something wrong.... sudo zypper search python I'm no pro at zypper yet, but this is how I find everything else. I'm installing these packages right now, hopefully that will resolve the problem:
Last edited by DarksideEE7 on Tue Jun 02, 2009 12:39 am, edited 1 time in total.
|
![]() Registered Member ![]()
|
I'm still not making any headway on this. I attempted to install kdebase4 using this repository for my distro:
http://download.opensuse.org/repositori ... SUSE_11.0/ to no avail....when I try to: sudo zypper install python-kdebase4 (as the plasmoid kde article suggests) I get this:
I googled libpython2.5.so.1.0 and manually installed the rpm using YaST and I'm still nowhere. Any help is greatly appreciated.
Last edited by DarksideEE7 on Wed Jun 03, 2009 3:53 am, edited 1 time in total.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]