|
|
|
|
Mirto Busico
()
|
|
||||||||||||
|
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? Thanks Mirto P.S. here is an extract from the buildout log: Getting required 'python-ldap>=2.0.6' required by Products.LDAPUserFolder 2.13. We have no distributions for python-ldap that satisfies 'python-ldap>=2.0.6'. Getting distribution for 'python-ldap>=2.0.6'. We have the distribution that satisfies 'setuptools==0.6c9'. Running easy_install: /usr/local/Plone33/Python-2.4/bin/python "-c" "from setuptools.command.easy_install import main; main()" "-mUNxd" "/usr/local/Plone33/buildout-cache/eggs/tmpytj52g" "-Z" "-q" "/usr/local/Plone33/buildout-cache/downloads/dist/python-ldap-2.3.9.tar.gz" path=/usr/local/Plone33/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg 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 [snip a lot of errors] Modules/LDAPObject.c:1210: warning: unused variable 'user' error: Setup script exited with error: command '/usr/bin/gcc' failed with exit status 1 An error occured when trying to install python-ldap 2.3.9.Look above this message for any errors thatwere output by easy_install. While: Installing client1. Getting distribution for 'python-ldap>=2.0.6'. Error: Couldn't install: python-ldap 2.3.9 [m_busico.vcf] begin:vcard fn:Mirto Silvio Busico n:Busico;Mirto Silvio email;internet:[hidden email] tel;work:333 4562651 tel;cell:333 4562651 x-mozilla-html:TRUE version:2.1 end:vcard _______________________________________________ Setup mailing list [hidden email] http://lists.plone.org/mailman/listinfo/setup |
||||||||||||||
|
|
Encolpe DEGOUTE
()
|
|
||||||||||||
|
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)encolpe@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)encolpe@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 -- Encolpe DEGOUTE http://encolpe.degoute.free.fr/ Logiciels libres, hockey sur glace et autres activités cérébrales _______________________________________________ Setup mailing list [hidden email] http://lists.plone.org/mailman/listinfo/setup |
||||||||||||||
|
|
Mirto Silvio Busico-2
()
|
|
||||||||||||
|
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)encolpe@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)encolpe@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 > > > [mirtosilvio_busico.vcf] 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:[hidden email] title:Dr. tel;work:+39 333 4562651 tel;cell:+39 333 4562651 x-mozilla-html:TRUE version:2.1 end:vcard _______________________________________________ Setup mailing list [hidden email] http://lists.plone.org/mailman/listinfo/setup |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |