On Sunday 09 May 2004 17:12, Simon Edwards wrote:
> [EMAIL PROTECTED] /home/sbe/devel/guidance/displayconfig]$ python
> Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
> [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import kdeui
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib/python2.3/site-packages/kdeui.py", line 67, in ?
>     import libkdeuic
> ImportError: libkdefxcmodule.so: cannot open shared object file: No such 
file 
> or directory

objdump and ldd tell me that libkdeuicmodule.so is linked to 
libkdefxcmodule.so. But my runtime linker isn't configured to search 
in /usr/lib/python2.3/site-packages/ so it can't find libkdefxcmodule.so. 

Does Mdk 9.2 really have /usr/lib/python2.3/site-packages/ in ld.config?

Couple of solutions:

1) modify ld.config. (=> makes packaging tricker)

2) modify the kde*.py files to import the library dependancies first. (make 
kdeui.py import kdefx, and let python load libkdefxcmodule.so directly).

3) modify the kde*.py to twiddle the LD_LIBRARY_PATH environment var with the 
extra search path. (=> is LD_LIBRARY_PATH linux specific?)

If Mandrake 10 is the odd one out here and all of the other distros 
have /usr/lib/python2.3/site-packages/ in their ld.config, then 1) is 
probably the winner.

cheers,

-- 
Simon Edwards             | Guarddog Firewall
[EMAIL PROTECTED]       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to