[python-ldap] Issue in setting up python-ldap on Windows 10

Waldemar Osuch waldemar.osuch at gmail.com
Thu Oct 25 10:37:08 EDT 2018


Hi,
The pypi.org does not have Windows builds anymore.
I would strongly recommend downloading the binary wheels from Christoph
Gohlke site
https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap

Alternatively you could use different ldap bindings.
I've had great success with bonsai (https://pypi.org/project/bonsai/)
Not only the binaries are provided but they also build cleanly on Windows.

Cheers,
Waldemar

On Thu, Oct 25, 2018 at 2:26 AM Arun Mariappan -T (armariap - CH REYNOLDS
ELECTRIC INC at Cisco) via python-ldap <python-ldap at python.org> wrote:

> Hello python-ldap team,
>
>
>
> I was trying to setup python-ldap package to my windows 10. I’m getting
> the below error.
>
>
>
> Ø  pip install python-ldap
>
> ……
>
>     building '_ldap' extension
>
>     creating build\temp.win-amd64-3.6
>
>     creating build\temp.win-amd64-3.6\Release
>
>     creating build\temp.win-amd64-3.6\Release\Modules
>
>     C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c
> /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R
> -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.1.0
> "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python
> style" -IModules
> -Ic:\users\armariap\appdata\local\programs\python\python36\include
> -Ic:\users\armariap\appdata\local\programs\python\python36\include
> "-IC:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include"
> "-IC:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program
> Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files
> (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files
> (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files
> (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files
> (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt"
> /TcModules/LDAPObject.c
> /Fobuild\temp.win-amd64-3.6\Release\Modules/LDAPObject.obj
>
>     LDAPObject.c
>
>
> c:\users\armariap\appdata\local\temp\pip-install-ntjuhtkp\python-ldap\modules\constants.h(7):
> fatal error C1083: Cannot open include file: 'lber.h': No such file or
> directory
>
>     error: command 'C:\\Program Files (x86)\\Microsoft Visual
> Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe'
> failed with exit status 2
>
>
>
>
>
> Could you suggest a way to get along with this issue.
>
>
>
> Thanks & regards,
>
> Arun
>
>
>
>
>
> [image:
> https://www.cisco.com/c/dam/m/en_us/signaturetool/images/logo/Cisco_Logo_no_TM_Indigo_Blue-RGB_43px.png]
>
> *Arun Mariappan*
>
> Engineer - IT
>
> armariap at cisco.com
>
> Tel:
>
>
>
>
>
>
>
>
>
> Cisco Systems, Inc.
>
>
>
>
>
>
>
>
>
> cisco.com
>
> [image: http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]
>
> Think before you print.
>
> This email may contain confidential and privileged material for the sole
> use of the intended recipient. Any review, use, distribution or disclosure
> by others is strictly prohibited. If you are not the intended recipient (or
> authorized to receive for the recipient), please contact the sender by
> reply email and delete all copies of this message.
>
> Please click here
> <http://www.cisco.com/c/en/us/about/legal/terms-sale-software-license-agreement/company-registration-information.html>
> for Company Registration Information.
>
>
>
>
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> https://mail.python.org/mailman/listinfo/python-ldap
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20181025/f51b3824/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 57276 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20181025/f51b3824/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 134 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20181025/f51b3824/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 134 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20181025/f51b3824/attachment-0003.gif>


More information about the python-ldap mailing list