Lber h python ldap

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Читайте также:  Import usage in python

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on Windows py3 #109

Error installing on Windows py3 #109

Comments

I get the next error when i try to install:

c:\users\dbasql\appdata\local\temp\pip-install-taezgy6a\python-ldap\modules\ 

constants.h(7): fatal error C1083: Cannot open include file: ‘lber.h’: No such f
ile or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2017\Buil
dTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\cl.exe’ failed with exi
t status 2

Command «e:\flujos\pyvenv\scripts\python.exe -u -c «import setuptools, tokenize;
file=’C:\Users\dbasql\AppData\Local\Temp\pip-install-taezgy6a\python-
ldap\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replac
e(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —recor
d C:\Users\dbasql\AppData\Local\Temp\pip-record-zcef9jbv\install-record.txt —si
ngle-version-externally-managed —compile —install-headers e:\flujos\pyvenv\inc
lude\site\python3.6\python-ldap» failed with error code 1 in C:\Users\dbasql\App
Data\Local\Temp\pip-install-taezgy6a\python-ldap\

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Windows 10: fatal error C1083: Cannot open include file: ‘lber.h’ #243

Unable to install on Windows 10: fatal error C1083: Cannot open include file: ‘lber.h’ #243

Comments

Unable to install on Windows 10, I tried

Issue description:
Whenever I run: pip install python-ldap
I get the following:

c:\users\user\appdata\local\temp\pip-install-652a07b0\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\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\cl.exe’ failed with exit status 2

Command «»c:\program files (x86)\python36-32\python.exe» -u -c «import setuptools, tokenize;file=’C:\Users\user\AppData\Local\Temp\pip-install-652a07b0\python-ldap\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\user\AppData\Local\Temp\pip-record-09ceypm_\install-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-install-652a07b0\python-ldap\

pyldap-3.0.0-py2.py3-none-any.whl is not a supported wheel on this platform.

  • Also looked into requirements: https://www.python-ldap.org/en/latest/installing.html#build-prerequisites
    I downloaded the OpenLDAP client libs but didn’t know where to place it’s folder ?

Steps to reproduce:
pip install python-ldap

Operating system: Windows 10, version 1803, OS Build 171134.285
Python version: Python 3.6.5

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

«DEPRECATION: Could not build wheels for python-ldap which do not use PEP 517» #380

«DEPRECATION: Could not build wheels for python-ldap which do not use PEP 517» #380

Comments

Issue description:

Not a python developer so I may have made a mistake here. Attempting to build a python project that uses this package, but fails.

From what I’ve seen on this repo’s issues, «wheels» aren’t something the project intends to support, so that deprecation warning may not matter. I also recall seeing mention of needing a system dependency installed, so I’ll look into that, just sharing the following output to this project as nothing came up about the PEP 517 deprecation when searching issues here.

ERROR: Failed building wheel for python-ldap Running setup.py clean for python-ldap Failed to build python-ldap DEPRECATION: Could not build wheels for python-ldap which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Installing collected packages: pyasn1, pyasn1-modules, python-ldap Running setup.py install for python-ldap: started Running setup.py install for python-ldap: finished with status 'error' 

Further down in the log is:

 building '_ldap' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/Modules gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.3.1 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULCENSE=Python style -IModules -I/usr/local/include/python3.8 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.8/Modules/LDAPObject.o In file included from Modules/LDAPObject.c:3: Modules/common.h:15:10: fatal error: lber.h: No such file or directory #include ^~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 

Steps to reproduce:

FROM python:3.8-buster WORKDIR /src RUN git clone "https://github.com/plinss/bindtool.git" --single-branch \ && cd /src/bindtool \ && pip install --no-cache-dir -r requirements.txt

Operating system: Docker (Debian Linux — Buster) / Host (Manjaro Linux)

Python version: 3.8

python-ldap version: python-ldap>=3.2.0 (from requirements.txt )

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-ldap package installation not working for ldap #18074

python-ldap package installation not working for ldap #18074

Comments

I was trying to set ldap based auth for superset, while running superset in docker. I have updated superset_config.py with the LDAP auth code. Then ran the following command:
docker-compose -f docker-compose-non-dev.yml up
But got the following error when tried to login:
2022-01-18 08:55:35,505:ERROR:flask_appbuilder.security.manager:python-ldap library is not installed

Can anyone give an example of how to install this package?

I have tried various ways to install python-ldap, but nothing seems to work:

RUN apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev RUN pip install python-ldap 
touch ./requirements/requirements-local.txt echo "python-ldap" >> ./requirements/requirements-local.txt 

^^trying this above commands and then running docker is throwing the below error for : superset, superset-worker, superset-worker-beat:

AP_R -DLDAPMODULE_VERSION=3.4.0 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/usr/local/include/python3.8 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.8/Modules/LDAPObject.o superset_tests_worker | In file included from Modules/LDAPObject.c:3: superset_tests_worker | Modules/common.h:15:10: fatal error: lber.h: No such file or directory superset_tests_worker | 15 | #include superset_tests_worker | | ^~~~~~~~ superset_tests_worker | compilation terminated. superset_tests_worker | error: command '/usr/bin/gcc' failed with exit code 1 superset_tests_worker | ---------------------------------------- superset_tests_worker | ERROR: Failed building wheel for python-ldap superset_tests_worker | Failed to build python-ldap superset_tests_worker | ERROR: Could not build wheels for python-ldap which use PEP 517 and cannot be installed directly superset_tests_worker | WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available. superset_tests_worker | You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. superset_worker_beat | Installing build dependencies: started superset_tests_worker exited with code 1 

My mac python version is: Python 3.8.9

Please let me know , what is the right way to install the python-ldap package, while running superset in docker??

The text was updated successfully, but these errors were encountered:

Источник

May 23, 2023: iRedMail-1.6.3 has been released.

  • Spider Email Archiver: Lightweight on-premises email archiving software, developed by iRedMail team.
  • Join our Telegram group (@iredmail_chat) to get help from other iRedMail users.

[iRedMail 1.2 Upgrade] lber.h: No such file or directory

iRedMail → iRedMail Support → [iRedMail 1.2 Upgrade] lber.h: No such file or directory

You must login or register to post a reply

Posts: 3

1 Topic by R@nd0m 2020-07-19 02:37:08

Topic: [iRedMail 1.2 Upgrade] lber.h: No such file or directory

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 1.1
— Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
— Linux/BSD distribution name and version: CentOS Linux release 7.8.2003 (Core)
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
— Web server (Apache or Nginx): Nginx
— Manage mail accounts with iRedAdmin-Pro? Yes, 4.3 (LDAP)
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

I’m trying to upgrade to iRedMail 1.2 and I’ve just started with the ‘Upgrade iRedAPD’ section and it is failing to build python-ldap. The full output is in the attached log file.

In file included from Modules/LDAPObject.c:3:0:
Modules/common.h:15:18: fatal error: lber.h: No such file or directory
#include
^
compilation terminated.
error: command ‘gcc’ failed with exit status 1

Am I missing a package? I appreciate any assistance.

Output.txt 51.83 kb, 2 downloads since 2020-07-18

You don’t have the permssions to download the attachments of this post.

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2 Reply by R@nd0m 2020-07-19 03:26:56 (edited by R@nd0m 2020-07-19 03:27:07)

Re: [iRedMail 1.2 Upgrade] lber.h: No such file or directory

I got it working by installing python-devel, openldap-devel and its dependencies (cyrus-sasl and cyrus-sasl-devel).

3 Reply by ZhangHuangbin 2020-07-20 12:34:49

Re: [iRedMail 1.2 Upgrade] lber.h: No such file or directory

It’s required to install python-ldap module, but it’s ok to remove after you have python-ldap installed.

Posts: 3

You must login or register to post a reply

iRedMail → iRedMail Support → [iRedMail 1.2 Upgrade] lber.h: No such file or directory

Currently installed 2 official extensions . Copyright © 2003–2010 PunBB.

Generated in 0.009 seconds (71% PHP — 29% DB) with 9 queries

Источник

Оцените статью