<div dir="ltr">I am trying to use the <a href="https://pypi.python.org/pypi/python-ldap">python-ldap</a> library with Python 2.7.6 (64 bit) on Windows 7 64 bit. My Python 2.7.6 is built with MSVC 2010.<br><br>I was able to get <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap">python_ldap‑2.4.19‑cp27‑none‑win_amd64.whl</a>, but the modules from Mr. Gohlke are built with MSVC 2008.<br><br><i>experimental</i>:<br>If I install the python_ldap‑2.4.19‑cp27‑none‑win_amd64.whl on my Python 2.7 <br><br><font face="monospace, monospace">import ldap<br></font><br>fails with<br><br><font face="monospace, monospace">File "c:\Python27_64\lib\site-packages\ldap\__init__.py", line 22, in <module><br>import _ldap<br>ImportError: DLL load failed: %1 is not a valid Win32 application.</font><div><br></div><div>now the question is, I want to build <a href="https://pypi.python.org/pypi/python-ldap">python-ldap</a> with MSVC 2010, for this I need<br>1. OpenLDAP 2.4.11+ client libs<br>2. Cyrus SASL 2.1.x or newer<br>3. MIT Kerberos or heimdal libs<br><br>but none of them have build environment for windows, how can I hack/build the libs and modules with MSVC 2010?</div><div><br></div><div>-- <br><div class="gmail_signature">With Regards<br>Neeraj</div>
</div></div>