Problems importing _ldap module

Michael Ströder michael at stroeder.com
Tue Oct 2 18:24:07 CEST 2001


Christian Wiese wrote:
> 
> but if I try
> 
> >>>import ldap
> 
> I get the a similar error message.
> [..]
>     from _ldap import __version__
> ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined symbol: ldap_ufn_setfilter
> >>>

Yes, there is a import _ldap in ldap.py anyway. It's just a matter
of module packaging. 

The problem is that in the OpenLDAP 2 libs the support for the
mainly unused functions *ufn* was dropped. Your build of python-ldap
trys to import those old functions which makes me believe that your
_ldapmodule.so was built against OpenLDAP 1 libs.

Ciao, Michael.




More information about the python-ldap mailing list