[python-ldap] django-ldap Installation Error. Please Help!!! Thank you very much!!!

Helen He Helen_He at symantec.com
Tue Aug 29 22:18:04 EDT 2017


Python 3.5 error
modules\errors.h(8): fatal error C1083:
Cannot open include file: 'lber.h': No such file or directory



c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>pip.exe install "c:\Users\Administrator\Downloads\django_auth_lda
p-1.2.15-py3-none-any.whl"
Processing c:\users\administrator\downloads\django_auth_ldap-1.2.15-py3-none-any.whl
Requirement already satisfied: django in c:\program files (x86)\python\python35-32\lib\site-packages (from django-auth-l
dap==1.2.15)
Collecting pyldap (from django-auth-ldap==1.2.15)
  Using cached pyldap-2.4.37.tar.gz
Requirement already satisfied: setuptools in c:\program files (x86)\python\python35-32\lib\site-packages (from pyldap->d
jango-auth-ldap==1.2.15)
Installing collected packages: pyldap, django-auth-ldap
  Running setup.py install for pyldap ... error
    Complete output from command "c:\program files (x86)\python\python35-32\python.exe" -u -c "import setuptools, tokeni
ze;__file__='C:\\TEMP\\pip-build-maui6ppt\\pyldap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().r
eplace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\TEMP\pip-wi6dunu5-record\insta
ll-record.txt --single-version-externally-managed --compile:
    defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
    extra_compile_args:
    extra_objects:
    include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
    library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
    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.win32-3.5
    copying Lib\ldapurl.py -> build\lib.win32-3.5
    copying Lib\ldif.py -> build\lib.win32-3.5
    copying Lib\dsml.py -> build\lib.win32-3.5
    copying Lib\slapdtest.py -> build\lib.win32-3.5
    creating build\lib.win32-3.5\ldap
    copying Lib\ldap\__init__.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\async.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\compat.py -> build\lib.win32-3.5\ldap
    creating build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\__init__.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\deref.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\libldap.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\openldap.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\ppolicy.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\psearch.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\pwdpolicy.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\readentry.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\sessiontrack.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\simple.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\controls\sss.py -> build\lib.win32-3.5\ldap\controls
    copying Lib\ldap\cidict.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\dn.py -> build\lib.win32-3.5\ldap
    creating build\lib.win32-3.5\ldap\extop
    copying Lib\ldap\extop\__init__.py -> build\lib.win32-3.5\ldap\extop
    copying Lib\ldap\extop\dds.py -> build\lib.win32-3.5\ldap\extop
    copying Lib\ldap\filter.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\functions.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\ldapobject.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\logger.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\modlist.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\resiter.py -> build\lib.win32-3.5\ldap
    copying Lib\ldap\sasl.py -> build\lib.win32-3.5\ldap
    creating build\lib.win32-3.5\ldap\schema
    copying Lib\ldap\schema\__init__.py -> build\lib.win32-3.5\ldap\schema
    copying Lib\ldap\schema\models.py -> build\lib.win32-3.5\ldap\schema
    copying Lib\ldap\schema\subentry.py -> build\lib.win32-3.5\ldap\schema
    copying Lib\ldap\schema\tokenizer.py -> build\lib.win32-3.5\ldap\schema
    copying Lib\ldap\syncrepl.py -> build\lib.win32-3.5\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
    writing requirements to Lib\pyldap.egg-info\requires.txt
    writing Lib\pyldap.egg-info\PKG-INFO
    writing dependency_links to Lib\pyldap.egg-info\dependency_links.txt
    writing top-level names to Lib\pyldap.egg-info\top_level.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\pyldap.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\pyldap.egg-info\SOURCES.txt'
    running build_ext
    building '_ldap' extension
    creating build\temp.win32-3.5
    creating build\temp.win32-3.5\Release
    creating build\temp.win32-3.5\Release\Modules
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_SASL -D
HAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.37 -IModules -I/usr/include -I/usr/include/sasl -I/u
sr/local/include -I/usr/local/include/sasl "-Ic:\program files (x86)\python\python35-32\include" "-Ic:\program files (x8
6)\python\python35-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x
86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\P
rogram Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Progr
am Files (x86)\Windows Kits\8.1\include\\winrt" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:
\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\in
clude\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include
\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /TcModules/LDAPObject.c /Fobuild\temp.win32-3.5\Release
\Modules/LDAPObject.obj
    LDAPObject.c
    c:\temp\pip-build-maui6ppt\pyldap\modules\errors.h(8): fatal error C1083: Cannot open include file: 'lber.h': No suc
h file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

    ----------------------------------------
Command ""c:\program files (x86)\python\python35-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\TEMP\\p
ip-build-maui6ppt\\pyldap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.c
lose();exec(compile(code, __file__, 'exec'))" install --record C:\TEMP\pip-wi6dunu5-record\install-record.txt --single-v
ersion-externally-managed --compile" failed with error code 1 in C:\TEMP\pip-build-maui6ppt\pyldap\

c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>pip.exe install "c:\Users\Administrator\Downloads\ldap3-2.3-py2.p
y3-none-any.whl"
Requirement already satisfied: ldap3==2.3 from file:///C:/Users/Administrator/Downloads/ldap3-2.3-py2.py3-none-any.whl i
n c:\program files (x86)\python\python35-32\lib\site-packages
Requirement already satisfied: pyasn1>=0.1.8 in c:\program files (x86)\python\python35-32\lib\site-packages (from ldap3=
=2.3)

c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>pip.exe install "c:\Users\Administrator\Downloads\django_auth_lda
p-1.2.15-py3-none-any.whl"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20170830/bc33101c/attachment-0001.html>


More information about the python-ldap mailing list