[python-ldap] fatal error C1083: Cannot open include fil

Petr Viktorin pviktori at redhat.com
Mon Sep 30 08:31:19 EDT 2019


On 2019-09-30 13:05, olivier.waterloos at aginsurance.be wrote:
> Hello,
> 
> I have an issue to install the package python-ldap:
> 
> C:\Users\<user>\AppData\Local\Temp\easy_install-imrjml50\python-ldap-3.2.0\Modules\constants.h(7): 
> fatal error C1083: Cannot open include fil
> 
> e: 'lber.h': No such file or directory
> 
> error: Setup script exited with error: command 'C:\\Program Files 
> (x86)\\Microsoft <file://Microsoft> Visual 
> Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28
> 
> 105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
> 
> On the internet I found the whl from the site 
> https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap, but the module 
> stays unrecognized.
> 
> I have download python-ldap-3.2.0.tar.gz and it gives the same error.
> 
> Do you have another solution?
> 
> I’m on Windows 2016 Standard 64bits with Python 3.7.
> 
> Thanks
> 


Hello!

The instructions for Windows are available here: 
http://python-ldap.org/en/python-ldap-3.2.0/installing.html#installing-from-pypi
Note that you need the build prerequisites. That's what you are missing; 
'lber.h' is part of OpenLDAP.


If you can figure out a better way to build on Windows, please share. 
Unfortunately, I haven't seen many people on this list contribute 
Windows knowledge. I don't use Windows myself.


More information about the python-ldap mailing list