Mailinglist Archive: opensuse-kde (199 mails)

< Previous Next >
Re: [opensuse-kde] python engine
  • From: Bob Williams <linux@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 12 Mar 2009 08:56:09 +0000
  • Message-id: <200903120856.10023.linux@xxxxxxxxxxxxxxxxxxxxx>
On Friday 06 March 2009 10:40:37 Stephan Kulow wrote:
Am Freitag 06 März 2009 schrieb Michal Seben:
Stephan Kulow wrote:
I added another spec file to kdebase4-workspace to build the python
engine for plasma: python-kdebase4-4.2.1

hello Stephan

i try attached python-plasmoid example :
plasmapkg - i hallo-plasma.zip
plasmoidviewer hallo-plasma

it works only if I have installed python-devel package, otherwise i get :
"Could not create a python ScriptEngine for the Hello Plasma widget"

I am just wandering why is needed devel package to run plasmoid

plasmoidviewer(16514)/python (plugin): Failed to import module
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py",
line 19, in <module> from PyQt4.QtCore import *
ImportError: /usr/lib64/python2.6/site-packages/PyQt4/QtCore.so: undefined
symbol: PyExc_ValueError

export LD_PRELOAD=/usr/lib64/libpython2.6.so.1.0 -> works

The bug is in python-qt4

Greetings, Stephan

So, this could be the same bug:

~> calibre
Traceback (most recent call last):
File "/usr/bin/calibre", line 8, in <module>
load_entry_point('calibre==0.4.143', 'gui_scripts', 'calibre')()
File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 277, in
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 2179, in
load_entry_point
return ep.load()
File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 1912, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib64/python2.6/site-packages/calibre/__init__.py", line 10, in
<module>
from PyQt4.QtCore import QUrl
ImportError: /usr/lib64/python2.6/site-packages/PyQt4/QtCore.so: undefined
symbol:_ZN10QTextCodec14ConverterStateD1Ev

If so, I'd be happy to add my name to the bug report, if you point me to it.

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.1, Kernel 2.6.27.19-3.2-default, KDE 4.2.1
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS

--
To unsubscribe, e-mail: opensuse-kde+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kde+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups