From: Christian W. <chr...@we...> - 2001-10-02 11:10:21
|
Hi, I want to write some python apps for accessing our LDAP server (OpenLDAP 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. I'm using the latest module from Joe Little, which compiles well with OpenLDAP 2.0.15 This is the error message I get from python: ------------------------------------------------------- Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import _ldap Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined symbol: ldap_ufn_setfilter >>> ------------------------------------------------------- Does anybody have an idea, for solving this problem ? Thank you in advance for any help or suggestions, Best regards, Christian |
From: <don...@ma...> - 2001-10-02 15:24:59
|
Christian, You need to make sure the python-ldap library is installed correctly. make sure it's in /usr/lib/python1.5/site-packages/ I had a few problems getting it to be found when i started out and ended up with copies of it all over the place!! But if it's in the above locati= on it should all be cool (check permissions too). Regards Donal >-- Original Message -- >From: Christian Wiese <chr...@we...> >To: pyt...@li... >Subject: Problems importing _ldap module >Date: Tue, 2 Oct 2001 13:09:30 +0200 > > >Hi, > >I want to write some python apps for accessing our LDAP server (OpenLDAP= > >2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. >I'm using the latest module from Joe Little, which compiles well with >OpenLDAP 2.0.15 > >This is the error message I get from python: > >------------------------------------------------------- > >Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat Li= nux > >7.1 2 on linux-i386 >Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>>> import _ldap >Traceback (innermost last): > File "<stdin>", line 1, in ? >ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined >symbol: ldap_ufn_setfilter >>>> > >------------------------------------------------------- > >Does anybody have an idea, for solving this problem ? > >Thank you in advance for any help or suggestions, > >Best regards, > >Christian > >_______________________________________________ >Python-LDAP-dev mailing list >Pyt...@li... >https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
From: Christian W. <cw...@4i...> - 2001-10-02 15:59:27
|
Hi Donald, thank you very much for your help, but everything seem to be on the right place. Also the permissions are correct. As I wrote in a later email, I found some gcc warnings during compilation of the CVS source. Then I compiled the "official" released sources, and I found the same warnings again. Greetings from Berlin, Christian Am Tuesday 02 October 2001 17:24 schrieb don...@ma...: > Christian, > > You need to make sure the python-ldap library is installed correctly. > make sure it's in /usr/lib/python1.5/site-packages/ > > I had a few problems getting it to be found when i started out and ended > up with copies of it all over the place!! But if it's in the above location > it should all be cool (check permissions too). > > Regards > > Donal > > >-- Original Message -- > > From: Christian Wiese <chr...@we...> > > >To: pyt...@li... > >Subject: Problems importing _ldap module > >Date: Tue, 2 Oct 2001 13:09:30 +0200 > > > > > >Hi, > > > >I want to write some python apps for accessing our LDAP server (OpenLDAP > > > >2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. > >I'm using the latest module from Joe Little, which compiles well with > >OpenLDAP 2.0.15 > > > >This is the error message I get from python: > > > >------------------------------------------------------- > > > >Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat > > Linux > > > >7.1 2 on linux-i386 > >Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > > > >>>> import _ldap > > > >Traceback (innermost last): > > File "<stdin>", line 1, in ? > >ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > > > >symbol: ldap_ufn_setfilter > > > > > >------------------------------------------------------- > > > >Does anybody have an idea, for solving this problem ? > > > >Thank you in advance for any help or suggestions, > > > >Best regards, > > > >Christian > > > >_______________________________________________ > >Python-LDAP-dev mailing list > >Pyt...@li... > >https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
From: Michael <mi...@st...> - 2001-10-02 16:12:12
|
Christian Wiese wrote: > > Then I compiled the "official" released sources, and I found the same > warnings again. Compiling the "official" released sources and OpenLDAP 2 libs: See item 3 on: http://python-ldap.sf.net/faq.shtml It's still up-to-date. Ciao, Michael. |
From: Christian W. <cw...@4i...> - 2001-10-02 16:26:07
|
you are right, and I read the faq before, but I found also a special rpm package from Joe, which is linked against OpenLDAP 2.x.x libs. There are also some patches in it. see: http://python-ldap.sourceforge.net/download.shtml The CVS sources should also work with OpenLDAP 2.x.x libs. Am Tuesday 02 October 2001 18:11 schrieb Michael Ströder: > Christian Wiese wrote: > > Then I compiled the "official" released sources, and I found the same > > warnings again. > > Compiling the "official" released sources and OpenLDAP 2 libs: > See item 3 on: http://python-ldap.sf.net/faq.shtml > > It's still up-to-date. > > Ciao, Michael. |
From: Michael <mi...@st...> - 2001-10-02 15:32:25
|
Christian Wiese wrote: > > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > symbol: ldap_ufn_setfilter > >>> What's the output of ldd /usr/lib/python1.5/site-packages/_ldapmodule.so ? Is there also a _ldap.so (patched for OpenLDAP 2 libs) around? Ciao, Michael. |
From: Christian W. <chr...@we...> - 2001-10-02 15:54:30
|
Hi Michael, thank you very much for your reply. ldd produces following output: ------------------------------------------------------ # ldd /usr/lib/python1.5/site-packages/_ldapmodule.so libldap.so.2 => /usr/lib/libldap.so.2 (0x40029000) liblber.so.2 => /usr/lib/liblber.so.2 (0x40052000) libm.so.6 => /lib/i686/libm.so.6 (0x4005c000) libc.so.6 => /lib/i686/libc.so.6 (0x4007f000) libsasl.so.7 => /usr/lib/libsasl.so.7 (0x401ba000) libkrb4.so.2 => /usr/kerberos/lib/libkrb4.so.2 (0x401c4000) libdes425.so.3 => /usr/kerberos/lib/libdes425.so.3 (0x401d9000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x401dd000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x40235000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x40246000) libssl.so.2 => /lib/libssl.so.2 (0x40249000) libcrypto.so.2 => /lib/libcrypto.so.2 (0x40276000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4033a000) libdl.so.2 => /lib/libdl.so.2 (0x40342000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40346000) libpam.so.0 => /lib/libpam.so.0 (0x40373000) libresolv.so.2 => /lib/libresolv.so.2 (0x4037b000) ------------------------------------------------------- But I can't find no _ldap.so I also downloaded the latest CVS tree and compiled manualy, but with the same effects described. During compiling I found some gcc warnings, and I posted the output to the list. Perhaps this could be helpful. Greetings from Berlin, Christian Am Tuesday 02 October 2001 17:32 schrieb Michael Ströder: > Christian Wiese wrote: > > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > > symbol: ldap_ufn_setfilter > > What's the output of ldd > /usr/lib/python1.5/site-packages/_ldapmodule.so ? Is there also a > _ldap.so (patched for OpenLDAP 2 libs) around? > > Ciao, Michael. > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
From: <jml...@ma...> - 2001-10-02 15:57:57
|
I'll look into this immediately. I also hate to bring up a dead horse, but are we supposed to import ldap or _ldap? On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote: > Hi, > > I want to write some python apps for accessing our LDAP server (OpenLDAP > 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. > I'm using the latest module from Joe Little, which compiles well with > OpenLDAP 2.0.15 > > This is the error message I get from python: > > ------------------------------------------------------- > > Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat > Linux > 7.1 2 on linux-i386 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>>> import _ldap > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > symbol: ldap_ufn_setfilter >>>> > > ------------------------------------------------------- > > Does anybody have an idea, for solving this problem ? > > Thank you in advance for any help or suggestions, > > Best regards, > > Christian > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Michael <mi...@st...> - 2001-10-02 16:09:58
|
jml...@ma... wrote: > > are we supposed to import ldap or _ldap? Good question. I vote for "import ldap" although the docs and demos say sometimes "import _ldap". IMHO "ldap" should be a module package with a ldap/__init__.py importing the symbols from module _ldap (as already done on Unix platforms in [Python's lib path]/site-packages/python-ldap/ldap.py). This makes it possible to add Python modules to module ldap. Ciao, Michael. |
From: Christian W. <cw...@4i...> - 2001-10-02 16:13:14
|
Hi, thank you for your reply and support. In the readme file the module is imported with >>>import _ldap but if I try >>>import ldap I get the a similar error message. ----------------------------------------------- >>> import ldap Traceback (innermost last): File "<stdin>", line 1, in ? File "/usr/lib/python1.5/site-packages/python-ldap/ldap.py", line 2, in ? from _ldap import __version__ ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined symbol: ldap_ufn_setfilter >>> ------------------------------------------------ Greetings, Christian Am Tuesday 02 October 2001 17:57 schrieb jml...@ma...: > I'll look into this immediately. I also hate to bring up a dead horse, > but are we supposed to import ldap or _ldap? > > On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote: > > Hi, > > > > I want to write some python apps for accessing our LDAP server (OpenLDAP > > 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. > > I'm using the latest module from Joe Little, which compiles well with > > OpenLDAP 2.0.15 > > > > This is the error message I get from python: > > > > ------------------------------------------------------- > > > > Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat > > Linux > > 7.1 2 on linux-i386 > > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > > > >>>> import _ldap > > > > Traceback (innermost last): > > File "<stdin>", line 1, in ? > > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > > symbol: ldap_ufn_setfilter > > > > > > ------------------------------------------------------- > > > > Does anybody have an idea, for solving this problem ? > > > > Thank you in advance for any help or suggestions, > > > > Best regards, > > > > Christian > > > > _______________________________________________ > > Python-LDAP-dev mailing list > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
From: Michael <mi...@st...> - 2001-10-02 16:24:19
|
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. |
From: Christian W. <cw...@4i...> - 2001-10-02 16:41:05
|
Ok, I understand, but I've never installed OpenLDAP 1.x on this system. Then we should check "LDAPObject.c", regarding this functions. Here are some greps, concerning my configuration: --------------------------------------------------- # rpm -qa | grep openldap openldap-devel-2.0.15-1 openldap-clients-2.0.15-1 openldap-servers-2.0.15-1 openldap-2.0.15-1 # rpm -qa | grep python python-xmlrpc-1.4-1 python-docs-1.5.2-35 pythonlib-1.28-1 rpm-python-4.0.3-0.96 python-devel-1.5.2-35 python-tools-1.5.2-35 openssl-python-0.9.6-3 mod_python-2.7.3-1 python-1.5.2-35 python-ldap-python1.5-1.10alpha3-4 --------------------------------------------------- Am Tuesday 02 October 2001 18:24 schrieb Michael Ströder: > 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. |
From: Joe L. <jl...@op...> - 2001-10-02 17:17:38
|
This is getting interesting Looks like LDAPObject.c in the Modules directory explicitly call ufn_*=20= and these are in turn relied upon by the URL functions. I'm currently=20 undergoing surgery on the code, removing the ugly bits AND hoping that=20= it will still be functional. This is not CVS.. just my latest edition. On Tuesday, October 2, 2001, at 09:36 AM, Christian Wiese wrote: > Ok, I understand, but I've never installed OpenLDAP 1.x on this = system. > > Then we should check "LDAPObject.c", regarding this functions. > > Here are some greps, concerning my configuration: > > --------------------------------------------------- > > # rpm -qa | grep openldap > openldap-devel-2.0.15-1 > openldap-clients-2.0.15-1 > openldap-servers-2.0.15-1 > openldap-2.0.15-1 > > # rpm -qa | grep python > python-xmlrpc-1.4-1 > python-docs-1.5.2-35 > pythonlib-1.28-1 > rpm-python-4.0.3-0.96 > python-devel-1.5.2-35 > python-tools-1.5.2-35 > openssl-python-0.9.6-3 > mod_python-2.7.3-1 > python-1.5.2-35 > python-ldap-python1.5-1.10alpha3-4 > > --------------------------------------------------- > > Am Tuesday 02 October 2001 18:24 schrieb Michael Str=F6der: >> 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:=20 >>> 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. > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Christian W. <cw...@4i...> - 2001-10-02 17:28:04
|
with my little experience in C, I removed the ufn functions in LDAPObject.c from the CVS source and now can import the ldap module and it seems to function. greetings Christian Am Tuesday 02 October 2001 19:17 schrieb Joe Little: > This is getting interesting > > Looks like LDAPObject.c in the Modules directory explicitly call ufn_* > and these are in turn relied upon by the URL functions. I'm currently > undergoing surgery on the code, removing the ugly bits AND hoping that > it will still be functional. > > This is not CVS.. just my latest edition. > > On Tuesday, October 2, 2001, at 09:36 AM, Christian Wiese wrote: > > Ok, I understand, but I've never installed OpenLDAP 1.x on this system. > > > > Then we should check "LDAPObject.c", regarding this functions. > > > > Here are some greps, concerning my configuration: > > > > --------------------------------------------------- > > > > # rpm -qa | grep openldap > > openldap-devel-2.0.15-1 > > openldap-clients-2.0.15-1 > > openldap-servers-2.0.15-1 > > openldap-2.0.15-1 > > > > # rpm -qa | grep python > > python-xmlrpc-1.4-1 > > python-docs-1.5.2-35 > > pythonlib-1.28-1 > > rpm-python-4.0.3-0.96 > > python-devel-1.5.2-35 > > python-tools-1.5.2-35 > > openssl-python-0.9.6-3 > > mod_python-2.7.3-1 > > python-1.5.2-35 > > python-ldap-python1.5-1.10alpha3-4 > > > > --------------------------------------------------- > > > > Am Tuesday 02 October 2001 18:24 schrieb Michael Ströder: > >> 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. > > > > _______________________________________________ > > Python-LDAP-dev mailing list > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
From: Joe L. <jl...@op...> - 2001-10-02 16:32:49
|
Early analysis of the problem: OpenLDAP 2.0.11 does not exhibit this problem. The only other newer versions of OpenLDAP that have been packaged by Open-IT are 2.0.14 and 2.0.15. This likely means an API change in OpenLDAP that is subtle. I rebuilt my RPMs against 2.0.15 and I still see the problem Christian Wiese noted. However, regardless of OpenLDAP built against, the python-ldap module works as long as the openldap 2.0.11 libraries are present. I will not ascertain when this broke post 2.0.11. Likely it means that python-ldap itself needs to address this condition, as it _currently_ appears to be unrelated to the packaging. I of course may still be wrong on that note. On Tuesday, October 2, 2001, at 09:12 AM, Christian Wiese wrote: > Hi, > > thank you for your reply and support. > In the readme file the module is imported with > >>>> import _ldap > > but if I try > >>>> import ldap > > I get the a similar error message. > > ----------------------------------------------- > >>>> import ldap > Traceback (innermost last): > File "<stdin>", line 1, in ? > File "/usr/lib/python1.5/site-packages/python-ldap/ldap.py", line 2, > in ? > from _ldap import __version__ > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > symbol: ldap_ufn_setfilter >>>> > > ------------------------------------------------ > > Greetings, > > Christian > > Am Tuesday 02 October 2001 17:57 schrieb jml...@ma...: >> I'll look into this immediately. I also hate to bring up a dead horse, >> but are we supposed to import ldap or _ldap? >> >> On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote: >>> Hi, >>> >>> I want to write some python apps for accessing our LDAP server >>> (OpenLDAP >>> 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. >>> I'm using the latest module from Joe Little, which compiles well with >>> OpenLDAP 2.0.15 >>> >>> This is the error message I get from python: >>> >>> ------------------------------------------------------- >>> >>> Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat >>> Linux >>> 7.1 2 on linux-i386 >>> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> >>>>>> import _ldap >>> >>> Traceback (innermost last): >>> File "<stdin>", line 1, in ? >>> ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: >>> undefined >>> symbol: ldap_ufn_setfilter >>> >>> >>> ------------------------------------------------------- >>> >>> Does anybody have an idea, for solving this problem ? >>> >>> Thank you in advance for any help or suggestions, >>> >>> Best regards, >>> >>> Christian >>> >>> _______________________________________________ >>> Python-LDAP-dev mailing list >>> Pyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Joe L. <jl...@op...> - 2001-10-02 16:40:59
|
Sorry. I _will try_ to ascertain when this broke. I didn't mean to add the "not". Looking at the change log, it would appear that 2.0.12 is the likely culprit, as very extraneous files were removed. More specifically, one of the last lines is "Removed -lldap UFN search support". Michael, does Python-LDAP expect this to be there? It might be in the headers still and so is included (since python-ldap is mostly an openldap 1.x beast). Also, this could very well be my fault since I am not CVS-current. However, Christian has already attempted to build against such. Again, I suspect some lingering requirement/inclusion in the python-ldap code. Still searching.. On Tuesday, October 2, 2001, at 09:32 AM, Joe Little wrote: > Early analysis of the problem: > > OpenLDAP 2.0.11 does not exhibit this problem. The only other newer > versions of OpenLDAP that have been packaged by Open-IT are 2.0.14 and > 2.0.15. > > This likely means an API change in OpenLDAP that is subtle. I rebuilt > my RPMs against 2.0.15 and I still see the problem Christian Wiese > noted. However, regardless of OpenLDAP built against, the python-ldap > module works as long as the openldap 2.0.11 libraries are present. I > will not ascertain when this broke post 2.0.11. Likely it means that > python-ldap itself needs to address this condition, as it _currently_ > appears to be unrelated to the packaging. I of course may still be > wrong on that note. > > > On Tuesday, October 2, 2001, at 09:12 AM, Christian Wiese wrote: > >> Hi, >> >> thank you for your reply and support. >> In the readme file the module is imported with >> >>>>> import _ldap >> >> but if I try >> >>>>> import ldap >> >> I get the a similar error message. >> >> ----------------------------------------------- >> >>>>> import ldap >> Traceback (innermost last): >> File "<stdin>", line 1, in ? >> File "/usr/lib/python1.5/site-packages/python-ldap/ldap.py", line 2, >> in ? >> from _ldap import __version__ >> ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: >> undefined symbol: ldap_ufn_setfilter >>>>> >> >> ------------------------------------------------ >> >> Greetings, >> >> Christian >> >> Am Tuesday 02 October 2001 17:57 schrieb jml...@ma...: >>> I'll look into this immediately. I also hate to bring up a dead horse, >>> but are we supposed to import ldap or _ldap? >>> >>> On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote: >>>> Hi, >>>> >>>> I want to write some python apps for accessing our LDAP server >>>> (OpenLDAP >>>> 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. >>>> I'm using the latest module from Joe Little, which compiles well with >>>> OpenLDAP 2.0.15 >>>> >>>> This is the error message I get from python: >>>> >>>> ------------------------------------------------------- >>>> >>>> Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat >>>> Linux >>>> 7.1 2 on linux-i386 >>>> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>>> >>>>>>> import _ldap >>>> >>>> Traceback (innermost last): >>>> File "<stdin>", line 1, in ? >>>> ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: >>>> undefined >>>> symbol: ldap_ufn_setfilter >>>> >>>> >>>> ------------------------------------------------------- >>>> >>>> Does anybody have an idea, for solving this problem ? >>>> >>>> Thank you in advance for any help or suggestions, >>>> >>>> Best regards, >>>> >>>> Christian >>>> >>>> _______________________________________________ >>>> Python-LDAP-dev mailing list >>>> Pyt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev >> > > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Michael <mi...@st...> - 2001-10-02 17:13:01
|
Joe Little wrote: > > "Removed -lldap UFN search support". > > Michael, does Python-LDAP expect this to be there? The ufn* methods are mentioned in http://python-ldap.sourceforge.net/doc/lib/node9.html. But I suspect that no serious LDAP application ever made use of this. > It might be in the > headers still and so is included (since python-ldap is mostly an > openldap 1.x beast). IMHO the *ufn* functions were already dropped in other OpenLDAP 2 patches for python-ldap. Ciao, Michael. |
From: Michael <mi...@st...> - 2001-10-02 17:00:27
|
Joe Little wrote: > > Early analysis of the problem: > > OpenLDAP 2.0.11 does not exhibit this problem. The only other newer > versions of OpenLDAP that have been packaged by Open-IT are 2.0.14 and > 2.0.15. See OpenLDAP 2's CHANGES: ------------------------- snip --------------------------- OpenLDAP 2.0.12 Release [..] Removed -lldap UFN search support [..] ------------------------- snip --------------------------- Ciao, Michael. |
From: Joe L. <jl...@op...> - 2001-10-02 16:08:22
|
Ok.. to make sure we are all on the the same page. You are using RedHat 7.1 with Open-IT's openldap-2.0.15 RPMS, as well as the python-ldap-python1.5-1.10alpha3-4.i386.rpm, correct? I want to make sure I match your setup exactly. On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote: > Hi, > > I want to write some python apps for accessing our LDAP server (OpenLDAP > 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. > I'm using the latest module from Joe Little, which compiles well with > OpenLDAP 2.0.15 > > This is the error message I get from python: > > ------------------------------------------------------- > > Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat > Linux > 7.1 2 on linux-i386 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>>> import _ldap > Traceback (innermost last): > File "<stdin>", line 1, in ? > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > symbol: ldap_ufn_setfilter >>>> > > ------------------------------------------------------- > > Does anybody have an idea, for solving this problem ? > > Thank you in advance for any help or suggestions, > > Best regards, > > Christian > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Michael <mi...@st...> - 2001-10-02 16:26:48
|
Joe Little wrote: > > python-ldap-python1.5-1.10alpha3-4.i386.rpm, correct? ^^^^^^^^^^ This version number is misleading since you patched python-ldap. And any reasons why you're not using recent CVS tree for applying the patches? There were important memory leak fixes since 1.10alpha3. Ciao, Michael. |
From: Joe L. <jl...@op...> - 2001-10-02 16:29:53
|
this is a new patching scheme provided to me. It allows for builds=20 against python1.5, 2.0, and 2.1. As for the patches, have only taken the=20= posted patches to date and have not yet used CVS since it was in flux.=20= What would be the current ideal flags to CVS to pull out an OpenLDAP 2.0=20= version. Is it HEAD? On Tuesday, October 2, 2001, at 09:26 AM, Michael Str=F6der wrote: > Joe Little wrote: >> >> python-ldap-python1.5-1.10alpha3-4.i386.rpm, correct? > ^^^^^^^^^^ > > This version number is misleading since you patched python-ldap. And > any reasons why you're not using recent CVS tree for applying the > patches? There were important memory leak fixes since 1.10alpha3. > > Ciao, Michael. > |
From: Christian W. <cw...@4i...> - 2001-10-02 16:28:51
|
Yep, that's right ... Am Tuesday 02 October 2001 18:08 schrieb Joe Little: > Ok.. to make sure we are all on the the same page. You are using RedHat > 7.1 with Open-IT's openldap-2.0.15 RPMS, as well as the > python-ldap-python1.5-1.10alpha3-4.i386.rpm, correct? I want to make > sure I match your setup exactly. > > On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote: > > Hi, > > > > I want to write some python apps for accessing our LDAP server (OpenLDAP > > 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module. > > I'm using the latest module from Joe Little, which compiles well with > > OpenLDAP 2.0.15 > > > > This is the error message I get from python: > > > > ------------------------------------------------------- > > > > Python 1.5.2 (#1, Sep 22 2001, 18:07:47) [GCC 2.96 20000731 (Red Hat > > Linux > > 7.1 2 on linux-i386 > > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > > > >>>> import _ldap > > > > Traceback (innermost last): > > File "<stdin>", line 1, in ? > > ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: undefined > > symbol: ldap_ufn_setfilter > > > > > > ------------------------------------------------------- > > > > Does anybody have an idea, for solving this problem ? > > > > Thank you in advance for any help or suggestions, > > > > Best regards, > > > > Christian > > > > _______________________________________________ > > Python-LDAP-dev mailing list > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |