[pyar] Error al instalar python-ldap-2.4.15 con Python 2.7.9. en Windows 10 AMD-64
Antonio Bodoc
ajbodoc en yahoo.com
Dom Feb 28 09:41:57 ART 2016
Hola:
Estoy tratando de instalar la librería python-ldap-2.4.15 en un entorno Python 2.7.9. en Windows 10 AMD-64 (como requerimiento de Odoo 8) y falla. Transcribo el error
Gracias
----------------------------------------------------------C:\odoo\v80\server>pip install python-ldap==2.4.15Downloading/unpacking python-ldap==2.4.15 Running setup.py (path:c:\users\antoni~1\appdata\local\temp\pip_build_AntonioJorge\python-ldap\setup.py) egg_info for package python-ldap defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R extra_compile_args: extra_objects: include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include library_dirs: /opt/openldap-RE24/lib /usr/lib libs: ldap_r
file Lib\ldap.py (for module ldap) not found file Lib\ldap\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) 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'Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\python27\lib\site-packages (from python-ldap==2.4.15)Installing collected packages: python-ldap Running setup.py install for python-ldap defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R extra_compile_args: extra_objects: include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include library_dirs: /opt/openldap-RE24/lib /usr/lib libs: ldap_r file Lib\ldap.py (for module ldap) not found file Lib\ldap\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) 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\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) 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\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) 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' building '_ldap' extension C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.15 -IModules -I/opt/openldap-RE24/include -I/usr/include/sasl -I/usr/include -IC:\Python27\include -IC:\Python27\PC /TcModules/LDAPObject.c /Fobuild\temp.win-amd64-2.7\Release\Modules/LDAPObject.obj LDAPObject.c c:\users\antoniojorge\appdata\local\temp\pip_build_antoniojorge\python-ldap\modules\errors.h(8) : fatal error C1083: Cannot open include file: 'lber.h': No such file or directory error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2 Complete output from command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\antoni~1\\appdata\\local\\temp\\pip_build_AntonioJorge\\python-ldap\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\antoni~1\appdata\local\temp\pip-gf7pjm-record\install-record.txt --single-version-externally-managed --compile: defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args:
extra_objects:
include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap-RE24/lib /usr/lib
libs: ldap_r
running install
running build
running build_py
file Lib\ldap.py (for module ldap) not found
file Lib\ldap\controls.py (for module ldap.controls) not found
file Lib\ldap\extop.py (for module ldap.extop) not found
file Lib\ldap\schema.py (for module ldap.schema) not found
creating build\lib.win-amd64-2.7
copying Lib\ldapurl.py -> build\lib.win-amd64-2.7
copying Lib\ldif.py -> build\lib.win-amd64-2.7
copying Lib\dsml.py -> build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\ldap
copying Lib\ldap\__init__.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\async.py -> build\lib.win-amd64-2.7\ldap
creating build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\__init__.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\libldap.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\openldap.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\ppolicy.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\psearch.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\pwdpolicy.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\readentry.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\sessiontrack.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\controls\simple.py -> build\lib.win-amd64-2.7\ldap\controls
copying Lib\ldap\cidict.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\dn.py -> build\lib.win-amd64-2.7\ldap
creating build\lib.win-amd64-2.7\ldap\extop
copying Lib\ldap\extop\__init__.py -> build\lib.win-amd64-2.7\ldap\extop
copying Lib\ldap\extop\dds.py -> build\lib.win-amd64-2.7\ldap\extop
copying Lib\ldap\filter.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\functions.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\ldapobject.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\logger.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\modlist.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\resiter.py -> build\lib.win-amd64-2.7\ldap
copying Lib\ldap\sasl.py -> build\lib.win-amd64-2.7\ldap
creating build\lib.win-amd64-2.7\ldap\schema
copying Lib\ldap\schema\__init__.py -> build\lib.win-amd64-2.7\ldap\schema
copying Lib\ldap\schema\models.py -> build\lib.win-amd64-2.7\ldap\schema
copying Lib\ldap\schema\subentry.py -> build\lib.win-amd64-2.7\ldap\schema
copying Lib\ldap\schema\tokenizer.py -> build\lib.win-amd64-2.7\ldap\schema
copying Lib\ldap\syncrepl.py -> build\lib.win-amd64-2.7\ldap
file Lib\ldap.py (for module ldap) not found
file Lib\ldap\controls.py (for module ldap.controls) not found
file Lib\ldap\extop.py (for module ldap.extop) not found
file Lib\ldap\schema.py (for module ldap.schema) not found
running egg_info
creating Lib\python_ldap.egg-info
writing requirements to Lib\python_ldap.egg-info\requires.txt
writing Lib\python_ldap.egg-info\PKG-INFO
writing top-level names to Lib\python_ldap.egg-info\top_level.txt
writing dependency_links to Lib\python_ldap.egg-info\dependency_links.txt
writing manifest file 'Lib\python_ldap.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
file Lib\ldap.py (for module ldap) not found
file Lib\ldap\controls.py (for module ldap.controls) not found
file Lib\ldap\extop.py (for module ldap.extop) not found
file Lib\ldap\schema.py (for module ldap.schema) not found
reading manifest file 'Lib\python_ldap.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules\LICENSE'
writing manifest file 'Lib\python_ldap.egg-info\SOURCES.txt'
running build_ext
building '_ldap' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\Modules
C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.15 -IModules -I/opt/openldap-RE24/include -I/usr/include/sasl -I/usr/include -IC:\Python27\include -IC:\Python27\PC /TcModules/LDAPObject.c /Fobuild\temp.win-amd64-2.7\Release\Modules/LDAPObject.obj
LDAPObject.c
c:\users\antoniojorge\appdata\local\temp\pip_build_antoniojorge\python-ldap\modules\errors.h(8) : fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------Cleaning up...Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\antoni~1\\appdata\\local\\temp\\pip_build_AntonioJorge\\python-ldap\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\antoni~1\appdata\local\temp\pip-gf7pjm-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\antoni~1\appdata\local\temp\pip_build_AntonioJorge\python-ldapStoring debug log for failure in C:\Users\AntonioJorge\pip\pip.log
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20160228/fd3b0030/attachment-0001.html>
Más información sobre la lista de distribución pyar