SobiDE
November 21, 2019, 9:14am
1
I can’t enable LDAP, always getting “LDAP Not Installed / Please Install the ldap3 library via pip to use ldap functionality.” error, and the library it’s already installed.
Clean install on Debian 10.1 / MariaDB 10.3.18 / Python 3.7.3-2
$ bench version
erpnext 12.1.8
frappe 12.0.18
$ pip list
Package Version Location
asn1crypto 1.2.0
bench 4.1.0 /home/user/bench-repo
certifi 2019.9.11
cffi 1.13.2
chardet 3.0.4
Click 7.0
cryptography 2.8
entrypoints 0.3
gitdb2 2.0.6
GitPython 2.1.11
honcho 1.0.1
httplib2 0.14.0
idna 2.8
jeepney 0.4.1
Jinja2 2.10.3
keyring 19.2.0
keyrings.alt 3.1.1
ldap3 2.6.1
Mako 1.1.0
Markdown 3.1.1
MarkupSafe 1.1.1
pip 19.3.1
pyasn1 0.4.8
pyasn1-modules 0.2.7
pycairo 1.18.2
pycparser 2.19
pycrypto 2.6.1
pycurl 7.43.0.3
Pygments 2.4.2
PyGObject 3.34.0
python-apt 1.8.4
python-crontab 2.4.0
python-dateutil 2.8.0
python-ldap 3.2.0
pyxdg 0.26
PyYAML 5.1.2
requests 2.22.0
SecretStorage 3.1.1
semantic-version 2.8.2
setuptools 41.6.0
six 1.13.0
smmap2 2.0.5
ttystatus 0.38
urllib3 1.25.7
virtualenv 16.7.7
wheel 0.33.6
SobiDE
November 22, 2019, 8:26am
2
Somebody posted the answer on Github:
In bench directory, run:
./env/bin/pip install ldap3
Bench uses its own Python environment, not the system one.
Have the same issue although installed ldap3 accordingly, while trying to save LDAP configuration getting error:
LDAP Not Installed
Please Install the ldap3 library via pip to use ldap functionality.
ERPNext: v11.1.38 (master)
Frappe Framework: v11.1.35 (master)
./env/bin/pip list
Package Version Location
argh 0.26.2
asn1crypto 0.24.0
Babel 2.6.0
backports.functools-lru-cache 1.5
backports.shutil-get-terminal-size 1.0.0
beautifulsoup4 4.7.1
bleach 2.1.4
bleach-whitelist 0.0.10
boto3 1.9.169
botocore 1.12.169
braintree 3.54.0
cachetools 3.1.1
certifi 2019.3.9
cffi 1.12.3
chardet 3.0.4
Click 7.0
coverage 4.5.3
croniter 0.3.30
cryptography 2.7
cssselect 1.0.3
cssutils 1.0.2
decorator 4.4.0
Deprecated 1.2.5
docutils 0.14
dropbox 9.1.0
email-reply-parser 0.5.9
enum34 1.1.6
erpnext 11.1.38 /home/frappe/frappe-bench/apps/erpnext
et-xmlfile 1.0.1
Faker 1.0.7
frappe 11.1.35 /home/frappe/frappe-bench/apps/frappe
future 0.17.1
futures 3.2.0
gitdb2 2.0.5
GitPython 2.1.11
gocardless-pro 1.9.0
google-api-python-client 1.7.9
google-auth 1.6.3
google-auth-httplib2 0.0.3
google-auth-oauthlib 0.4.0
googlemaps 3.0.2
gunicorn 19.9.0
html2text 2016.9.19
html5lib 1.0.1
httplib2 0.13.0
idna 2.8
ipaddress 1.0.22
ipython 5.8.0
ipython-genutils 0.2.0
jdcal 1.4.1
Jinja2 2.10.1
jmespath 0.9.4
ldap3 2.7
lxml 4.3.4
markdown2 2.3.5
MarkupSafe 1.1.1
maxminddb 1.4.1
maxminddb-geolite2 2018.703
ndg-httpsclient 0.5.1
num2words 0.5.5
numpy 1.16.4
oauthlib 3.0.1
openpyxl 2.6.2
ordereddict 1.1
pandas 0.24.2
passlib 1.7.1
pathlib2 2.3.3
pathtools 0.1.2
pdfkit 0.5.0 /home/frappe/frappe-bench/env/src/pdfkit
pexpect 4.7.0
pickleshare 0.7.5
Pillow 6.0.0
pip 20.0.2
plaid-python 3.2.0
premailer 3.4.1
prompt-toolkit 1.0.16
ptyprocess 0.6.0
pyasn1 0.4.8
pyasn1-modules 0.2.5
pycparser 2.19
PyGithub 1.43.7
Pygments 2.4.2
PyJWT 1.7.1
PyMySQL 0.9.3
pyOpenSSL 19.0.0
pyotp 2.2.7
PyPDF2 1.26.0
pypng 0.0.19
PyQRCode 1.2.1
python-dateutil 2.8.0
python-stdnum 1.11
pytz 2019.1
PyYAML 5.1.1
rauth 0.7.3
redis 2.10.6
requests 2.22.0
requests-oauthlib 1.2.0
rq 0.12.0
rsa 4.0
s3transfer 0.2.1
scandir 1.10.0
schedule 0.6.0
selenium 3.141.0
semantic-version 2.6.0
setuptools 41.0.1
simplegeneric 0.8.1
six 1.12.0
smmap2 2.0.5
soupsieve 1.9.1
stripe 2.29.4
text-unidecode 1.2
traitlets 4.3.2
Unidecode 1.1.0
unittest-xml-reporting 2.5.1
uritemplate 3.0.0
urllib3 1.23
watchdog 0.8.0
wcwidth 0.1.7
webencodings 0.5.1
Werkzeug 0.15.4
wheel 0.33.4
WooCommerce 2.1.0
wrapt 1.11.1
zxcvbn-python 4.4.24