Thanks a lot. It worked!
Regards
Mirto
Encolpe Degoute ha scritto:
Mirto Silvio Busico a écrit :
Hi all,
I have a strange error in my buildout.
I added the plone.app.ldap product to the buildout.
It fails in installing the required python-ldap product.
The
/usr/local/Plone33/buildout-cache/downloads/dist/python-ldap-2.3.9.tar.gz
source file is correctly downloaded; but it is not extracted in the
/usr/local/Plone33/buildout-cache/eggs directory and this causes the error.
As a workaround, I can copy the egg from a previous Plone install (3.3
Rc 4) ant then all goes right.
I've reinstalled my machine so I suppose I missed to install some
libary/tool before running the installer.
Any hint?
As PIL, python-ldap can make you loose a day on it.
The simpliest way to undersand what is wrong is to use the old way to
build it.
Download the archive on http://pypi.python.org/pypi/python-ldap/2.3.9
Try to run it 'easy_install python-ldap-2.3.9.tar.gz'
(plonedev2.6)enco...@gosseyn:/usr/local/python-envs/plonedev2.6$
easy_install python-ldap-2.3.9.tar.gz
Processing python-ldap-2.3.9.tar.gz
Running python-ldap-2.3.9/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-DLSpDG/python-ldap-2.3.9/egg-dist-tmp-EYHtdz
extra_compile_args:
extra_objects:
include_dirs: /opt/openldap-RE24/include /usr/include/sasl
library_dirs: /opt/openldap-RE24/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
...
The line 'libs: ldap_r lber sasl2 ssl crypto' should make you verify
that you already installed the development package for these libraries.
$ sudo apt-get install libsasl2-dev libcrypto++-dev \
libldap2-dev libssl-dev
...
Then you can rerun the previous command:
(plonedev2.6)enco...@gosseyn:/usr/local/python-envs/plonedev2.6$
easy_install python-ldap-2.3.9.tar.gz
Processing python-ldap-2.3.9.tar.gz
Running python-ldap-2.3.9/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-_9k_R5/python-ldap-2.3.9/egg-dist-tmp-eqaeYe
extra_compile_args:
extra_objects:
include_dirs: /opt/openldap-RE24/include /usr/include/sasl
library_dirs: /opt/openldap-RE24/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:17:
/usr/include/sasl/sasl.h:349: warning: function declaration isn’t a
prototype
Modules/options.c: In function ‘LDAP_get_option’:
Modules/options.c:126: warning: unused variable ‘doubleval’
Adding python-ldap 2.3.9 to easy-install.pth file
Installed
/usr/local/python-envs/plonedev2.6/lib/python2.6/site-packages/python_ldap-2.3.9-py2.6-linux-i686.egg
Processing dependencies for python-ldap==2.3.9
Finished processing dependencies for python-ldap==2.3.9
begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[email protected]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup