moinwiki / moin

MoinMoin Wiki Development (2.0+), unstable, for production please use 1.9.x.
https://moinmo.in/
Other
304 stars 93 forks source link

extra package python-ldap needs dev package dependencies #748

Open ReimarBauer opened 5 years ago

ReimarBauer commented 5 years ago

This is a documentation task

For installing python-ldap we need further dependencies, on debian, ubuntu:

libldap2-dev python2.7-dev libsasl2-dev libssl-dev

missing dependencies showed as

26   Running setup.py bdist_wheel for python-ldap: finished with status 'error'
104   Modules/constants.h:7:18: fatal error: lber.h: Datei oder Verzeichnis nicht gefunden
106   error: command 'gcc' failed with exit status 1
109   Failed building wheel for python-ldap
111 Failed to build python-ldap
114     Running setup.py install for python-ldap: finished with status 'error'
192     Modules/constants.h:7:18: fatal error: lber.h: Datei oder Verzeichnis nicht gefunden
194     error: command 'gcc' failed with exit status 1
197 Command "/home/user/tmp/moin-master-venv-python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-HEtKF_/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 /tmp/pip-record-jdrkK1/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/tmp/moin-master-venv-python/include/site/python2.7/python-ldap" failed with error code 1 in /tmp/pip-install-HEtKF_/python-ldap/
kwatsen commented 5 years ago

Different dependencies on different platforms. On OpenBSD, openldap-client is needed.

UlrichB22 commented 2 years ago

There is an os independent pure python ldap client: ldap3.readthedocs.io

Does it make sense to migrate from python-ldap to ldap3? Then this issue could be postponed to a later milestone.

RogerHaase commented 2 years ago

Sounds good to me. Per the installation instructions:

This library has only one dependence on the pyasn1 module, You can install it or let the installer do it for you.

That should close the issue rather than postpone it.

RogerHaase commented 2 months ago

pushed to 2.0.0c1, someone who wants this needs to help