Migrated erpnext and frappe from production to staging. Also swithced to python3.6.
Installed python3-ldap in /home/frappe/frappe-bench/env/bin/python3 but facing expected error message when logging in using ldap:
Apparently import ldap as is used here does not work anymore as module is named ldap3 now. And syntax in ldap3 is apparently significantly different from ldap.
python3-ldap is a different module from python-ldap and was renamed to ldap3 to avoid confusion.
But there are still complications installing python-ldap in python3 environemnt. As pip is trying to compile missing parts and fails.