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

olivier.waterloos at aginsurance.be olivier.waterloos at aginsurance.be
Tue Oct 1 06:41:56 EDT 2019


Hello Petr,

Thank you for your support. Indeed it's very problematic on Windows.
But I have found a solution: we using pyAD. https://zakird.github.io/pyad/


Kind regards


Olivier Waterloos
I&O Collaboration & Applic. Engineering
+32 2 664 03 70     +32 473 98 03 82
Visit our website on www.aginsurance.be


> -----Original Message-----
> From: Petr Viktorin <pviktori at redhat.com>
> Sent: lundi 30 septembre 2019 14:31
> To: Waterloos Olivier <olivier.waterloos at aginsurance.be>; python-
> ldap at python.org
> Subject: Re: [python-ldap] fatal error C1083: Cannot open include fil
>
> 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://urldefense.proofpoint.com/v2/url?u=https-
> 3A__www.lfd.uci.edu_-
> > 7Egohlke_pythonlibs_-23python-2Dldap&d=DwID-g&c=umdN7-
> UKVWbf7Ie0PtI_qgdqHn0WRecdD9KiIHWQsvs&r=whQib1IfrP25QrJ7fZbIkHE
> 4WaqTmR1T8CxmhmPrM0Q&m=NbWP-kpIFV2Xxm0-
> SHq9oVHSeCiaTcMDm1dTJRLDez4&s=LAfWXnYpoR7n1aK5R4mfCMCD8IFkux
> q6yVQivQtJhMM&e= , 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:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__python-
> 2Dldap.org_en_python-2Dldap-2D3.2.0_installing.html-23installing-2Dfrom-
> 2Dpypi&d=DwID-g&c=umdN7-
> UKVWbf7Ie0PtI_qgdqHn0WRecdD9KiIHWQsvs&r=whQib1IfrP25QrJ7fZbIkHE
> 4WaqTmR1T8CxmhmPrM0Q&m=NbWP-kpIFV2Xxm0-
> SHq9oVHSeCiaTcMDm1dTJRLDez4&s=uIVObdi-
> oMUtVot3PEa1IcFf0hxoQO6I5GjWaNecB6U&e=
> 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.
Deze e-mail, met inbegrip van elk bijgevoegd document, is vertrouwelijk. Indien u niet de geadresseerde bent, is het openbaar maken, kopiëren of gebruik maken ervan verboden. Indien u dit bericht verkeerdelijk hebt ontvangen, gelieve het te vernietigen en de afzender onmiddellijk te verwittigen. De veiligheid en juistheid van email-berichten kunnen niet gewaarborgd worden, aangezien de informatie kan onderschept of gesaboteerd worden, verloren gaan of virussen kan bevatten. De afzender wijst bijgevolg elke aansprakelijkheid af in dergelijke gevallen. Indien een controle zich opdringt, gelieve een papieren kopie te vragen.

Ce message électronique, y compris tout document joint, est confidentiel. Si vous n'êtes pas le destinataire de ce message, toute divulgation, copie ou utilisation en est interdite. Si vous avez reçu ce message par erreur, veuillez le détruire et en informer immédiatement l'expéditeur. La sécurité et l'exactitude des transmissions de messages électroniques ne peuvent être garanties étant donné que les informations peuvent être interceptées, altérées, perdues ou infectées par des virus; l'expéditeur décline dès lors toute responsabilité en pareils cas. Si une vérification s'impose, veuillez demander une copie papier.

This email and any attached files are confidential and may be legally privileged. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this email. Email transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required please request a hard copy version.


More information about the python-ldap mailing list