Mailinglist Archive: opensuse-kde (199 mails)

< Previous Next >
Re: [opensuse-kde] python engine
  • From: Stephan Kulow <coolo@xxxxxxx>
  • Date: Thu, 12 Mar 2009 10:10:40 +0100
  • Message-id: <200903121010.42124.coolo@xxxxxxx>
Am Donnerstag 12 März 2009 schrieb Bob Williams:
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.

I fixed it in python-qt4. You can get it from KDE:Qt

Greetings, Stephan



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

< Previous Next >
Follow Ups