ANN: Python-LDAP 2.0.0pre02

Michael Ströder michael at stroeder.com
Fri Feb 1 14:06:29 CET 2002


Jens Vagelpohl wrote:
> 
>  >>> import ldap
> Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
>    File "/usr/local/lib/python2.1/site-packages/ldap/__init__.py", line 5,
> in ?
>      from _ldap import *
> ImportError: liblber.so.2: cannot load shared object file: No such file or
> directory
>  >>>
> 
> i'm on YellowDog linux 2.1 (a redhat 7 clone for mac) with OpenLDAP 2.0.18
> and Python2.1.2. the messages from setup.py build and setup.py compile did
> not contain any errors during compilation.
> 
> is it just my setup or is there a problem? this worked fine with the
> previous release candidate you put on the sourceforge file list.

This seems to be a problem with your OpenLDAP 2 shared libs. Check
shared libs with

$ ldd [Python lib dir]/site-packages/_ldap.so

Make sure you have either configured /etc/ld.so.conf (invoke
ldconfig after modifications) to contain directory lib/ of your
local OpenLDAP 2 installation or set LD_LIBARY_PATH accordingly.

If that does help since your on Mac architecture there might be
other subtle problems I don't know of.

Ciao, Michael.




More information about the python-ldap mailing list