Greetings,
I am testing Odoo and tried enabling LDAP Authentication but received the error: Unable to install module "auth_ldap" because an external dependency is not met: Python library not installed: ldap.
I'm using the Windows version. Can someone advise please how do I install the missing library please?
Thanks.
Hi,
What version of python you are using?
You get it by open cmd and type python --version.
Is your system platform 64 bit or 32 bit?
Thanks Waleed. It's 64-bit Windows. The Odoo installation has a python folder with what I believe is python 3.7. I downloaded and installed 3.10 (only one officially available for download on the site) and installed python_ldap-3.4.0-cp310-cp310-win_amd64.whl given the instructions you provided in powershell. The install was successful but I am still getting the error message. Am I supposed to import it somewhere?
You need to use the same version used by Odoo so you can run the command form the path of python folder of the Odoo installation.
run the below after change the folders in path as yours:
cd "C:\Program Files (x86)\Odoo 13.0\python\Scripts"
then run
python.exe --version
you will get the version and you can download the whl file for the python version:
then from the same above path run
pip3.exe install --only-binary :all: WHL_FILE_PATH
Thanks Waleed. I removed the version 3.10, but the pip command was giving an error looking for path that didn't exist: "Fatal error in launcher: Unable to create process using '"c:\odoobuild\winpy64\python-3.7.7.amd64\python.exe"". I reinstalled the 3.7.7 as that was the version in the Odoo folder, and copied the installed pip files over to the Odoo folder. From there the pip install command you provided worked and I was able to genable it without error.
Thanks again!