PyKDE/PyQT/SIP

Jim Bublitz jbublitzno at spamnwinternet.com
Sun Feb 15 02:47:33 EST 2004


Sam wrote:

> Hey people,

> I am trying to install these modules to play around with KDE
> panel applets, but I am beginning to think it's too much
> trouble to be worth it.
 
> I've installed PyQT (as well as the PyQT-devel rpm, which is
> apparently needed if I install PyQT from an rpm), PyKDE and the
> sip module. When I run the importTest.py script that comes with
> PyKDE, I get this:
 
> -------------------------------------
> Testing PyKDE module imports
 
> dcop
> /usr/lib/python2.3/site-packages/dcop.py:22: RuntimeWarning:
> Python C API version mismatch for module libsip: This Python
> has API version 1012, module libsip has version 1011.
>    import libsip
> kdecore
> kdesu
> kdefx
> kdeui
> Traceback (most recent call last):
>    File "importTest.py", line 7, in ?
>      exec ("import " + mod)
>    File "<string>", line 1, in ?
>    File "/usr/lib/python2.3/site-packages/kdeui.py", line 67,
>    in ?
>      import libkdeuic
> ImportError: libpython2.3.so.1.0: cannot open shared object
> file: No such file or directory
> ---------------------------------
 
> If anyone could give me an easy solution to the problem (or any
> solution, but easy would be preferable ;) that would be
> fantastic.

I'm not sure what this error is, but libkdeuicmodule should be
looking for libpythonize.so.1.0, which should be in /usr/lib and
symlinked some other places. The first thing to do is see if
libpythonize is in /usr/lib, and if the Makefile in
PyKDE-3.8/pythonize LFLAGS includes: -soname,libpythonize.so.1.
You can't do panel applets without this. It would also be useful
to do:

    ldd /usr/lib/python/site-packages/libkdeuicmodule.so

or whatever the path to that lib is on your system. You can also
check the LIBS line in the kdeui/Makefile - should include
-lpythonize. It would also help to know what KDE version your
running, and which PyKDE release.

Either reply here or email me privately (jbublitz at nwinternet.com)
and we should be able to get it straightened out. Let me know
what you find out.

PyKDE-3.8 was a pretty crappy release as far as installation goes
(it works great if you can get it installed though). The cause
of that has been resolved and the next release should be a lot
easier to install. However the next release won't include panel
applet support, since that's being split off into a separate
package - I'm not maintaining that at the moment and haven't
checked on the status lately, but I'll see what I can find out
there too.

Sorry for the problems.

Jim



More information about the Python-list mailing list