Preparing release 2.3.1

Alain Spineux aspineux at gmail.com
Tue Jul 17 15:22:02 CEST 2007


Hi
I tried the CVS head and got problem

First I got this error when building the egg

cc: unrecognized option '-R/usr/local/openldap-2.3/lib'

The full command is

/kolab/bin/cc -pthread -shared
build/temp.linux-i686-2.4/Modules/LDAPObject.o
build/temp.linux-i686-2.4/Modules/ldapcontrol.o
build/temp.linux-i686-2.4/Modules/common.o
build/temp.linux-i686-2.4/Modules/constants.o
build/temp.linux-i686-2.4/Modules/errors.o
build/temp.linux-i686-2.4/Modules/functions.o
build/temp.linux-i686-2.4/Modules/schema.o
build/temp.linux-i686-2.4/Modules/ldapmodule.o
build/temp.linux-i686-2.4/Modules/message.o
build/temp.linux-i686-2.4/Modules/version.o
build/temp.linux-i686-2.4/Modules/options.o
-L/usr/local/openldap-2.3/lib -R/usr/local/openldap-2.3/lib -lldap_r
-llber -lsasl2 -lssl -lcrypto -o build/lib.linux-i686-2.4/_ldap.so

I removed the references to /usr/local/openldap-2.3/ in setup.cfg and
got and egg, I installed
the egg and removed any old file from site packages

rm -rf dsml.py   dsml.pyo    ldapurl.pyc  ldif.py   ldif.pyo dsml.pyc
ldapurl.py  ldapurl.pyo  ldif.pyc ldap/

I got the fologing error when starting my project:

Traceback (most recent call last):
  File "./start-emailgency.py", line 53, in ?
    from emailgency.controllers import Root
  File "/s0/asx/src/emailgency/trunk/emailgency/controllers.py", line 8, in ?
    import main_ctrl, pas_sub_ctrl, addr_ctrl, common_ctrl
  File "/s0/asx/src/emailgency/trunk/emailgency/main_ctrl.py", line 12, in ?
    from emailgency import json, eg_dns, eg_mail, rrdtoolx, egsyslib, eg_config
  File "/s0/asx/src/emailgency/trunk/emailgency/egsyslib.py", line 8, in ?
    from eg_kolab_lib import KolabConnection
  File "/s0/asx/src/emailgency/trunk/emailgency/eg_kolab_lib.py", line 4, in ?
    import ldap, ldap.modlist, ldapurl
  File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/__init__.py",
line 48, in ?
    from functions import open,initialize,init,get_option,set_option
  File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/functions.py",
line 36, in ?
    from ldap.ldapobject import LDAPObject
  File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/ldapobject.py",
line 40, in ?
    from ldap.controls import
LDAPControl,DecodeControlTuples,EncodeControlTuples
  File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/controls.py",
line 85, in ?
    class MatchedValuesControl(LDAPControl):
  File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/controls.py",
line 93, in MatchedValuesControl
    controlType = ldap.LDAP_CONTROL_VALUESRETURNFILTER
AttributeError: 'module' object has no attribute
'LDAP_CONTROL_VALUESRETURNFILTER'

any idea ?

On 7/16/07, Michael Ströder <michael at stroeder.com> wrote:
> HI!
>
> I'd like to release 2.3.1 soon. There are some interesting improvements
> in HEAD but not yet released. Therefore testing of HEAD is needed.
> Thanks to the contributors!
>
> Please provide feedback ideally on the mailing list. Thanks.
>
> Ciao, Michael.
>
> Current CHANGES:
>
> Released 2.3.1 2007-07-xx
>
> Changes since 2.3.0:
>
> * Support for setuptools (building .egg, thanks to Torsten)
> * Support for matched values control (RFC 3876, thanks to Andreas)
>
> Lib/
> * Fixed ldif (see SF#1709111, thanks to Dmitry)
>
> Modules/
> * Added constant MOD_INCREMENT to support
>   modify+increment extension (see RFC 4525, thanks to Andreas)
>
> 


More information about the python-ldap mailing list