This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Could not create a python scriptengine Error

Tags: None
(comma "," separated)
User avatar
vinodkhare
Registered Member
Posts
7
Karma
0
OS
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.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
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."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
Blizzz
Registered Member
Posts
161
Karma
0
OS
I can confirm this with Kubuntu Jaunty Alpha (PyQt 4.4.4-3ubuntu2).


Image
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
I'm unable to reproduce this with openSUSE. Might be a PyQt issue in Kubuntu?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
vinodkhare
Registered Member
Posts
7
Karma
0
OS
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.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
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."
Image
Plasma FAQ maintainer - Plasma programming with Python
kacpeur
Registered Member
Posts
1
Karma
0
OS
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
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS
Works for me under Gentoo. If you look at the very bottom of the page. It explains the reason and how to fix it.


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
agim
Registered Member
Posts
2
Karma
0
I am having the same problem too. If there is a solution, I hope someone posts it.
Unifex
Registered Member
Posts
1
Karma
0
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;
Code: Select all
gold@evolved:~$ sudo apt-get install kdeplasmoids-dev
[sudo] password for gold:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  kdeplasmoids-dev: Depends: kdeplasma-addons-dev but it is not going to be installed
E: Broken packages


Does that help anyone? I don't have the time this morning to dig further.
platoJones
Registered Member
Posts
12
Karma
0
OS
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.
User avatar
burgua
Registered Member
Posts
2
Karma
0
OS
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.
billux13
Registered Member
Posts
9
Karma
0
OS
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.
DarksideEE7
Registered Member
Posts
5
Karma
0
I'm getting this error in openSUSE 11.1 KDE.....I checked this page and I don't have the files mentioned:
Error:

Could not create a python scriptengine for "your package name"

Solution: check if your plasma installation has the required files (plasma_importer.py, plasmascript.py) and the package python-dev is installed.

Packages for openSUSE are available in the KDE:KDE4:Factory:Desktop repository (python-kdebase4 and python-devel).

Source files: http://websvn.kde.org/trunk/KDE/kdebase ... es/python/


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:
i | python-devel | Include Files and Libraries Mandatory for Building Python M-> | 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:
python-kde4 python-qt4 python-sip

Last edited by DarksideEE7 on Tue Jun 02, 2009 12:39 am, edited 1 time in total.
DarksideEE7
Registered Member
Posts
5
Karma
0
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:
Problem: nothing provides libpython2.5.so.1.0 needed by python-kde4-4.2.88svn973768-65.2.i586
Solution 1: do not ask to install a solvable providing python-kdebase4


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.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]