Windows上的Odoo 14无法启用LDAP身份验证



我试图在安装在Windows Server上的ODOO 14上启用LDAP身份验证,当单击保存时,我得到了以下错误

"Error:
Odoo Server Error
Traceback (most recent call last):
File "C:inetpubARCOMERPserverodooaddonsbasemodelsir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:inetpubARCOMERPserverodoohttp.py", line 683, in dispatch
result = self._call_function(**self.params)
File "C:inetpubARCOMERPserverodoohttp.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:inetpubARCOMERPserverodooservicemodel.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:inetpubARCOMERPserverodoohttp.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "C:inetpubARCOMERPserverodoohttp.py", line 912, in __call__
return self.method(*args, **kw)
File "C:inetpubARCOMERPserverodoohttp.py", line 531, in response_wrap
response = f(*args, **kw)
File "C:inetpubARCOMERPserverodooaddonswebcontrollersmain.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:inetpubARCOMERPserverodooaddonswebcontrollersmain.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:inetpubARCOMERPserverodooapi.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:inetpubARCOMERPserverodooapi.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:inetpubARCOMERPserverodooaddonsbasemodelsres_config.py", line 642, in execute
installation_status = self._install_modules(to_install)
File "C:inetpubARCOMERPserverodooaddonsbasemodelsres_config.py", line 36, in _ 
install_modules
result = to_install_modules.button_immediate_install()
File "<decorator-gen-71>", line 2, in button_immediate_install
File "C:inetpubARCOMERPserverodooaddonsbasemodelsir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "C:inetpubARCOMERPserverodooaddonsbasemodelsir_module.py", line 474, in 
button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:inetpubARCOMERPserverodooaddonsbasemodelsir_module.py", line 592, in 
_button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:inetpubARCOMERPserverodoomodulesregistry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:inetpubARCOMERPserverodoomodulesloading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "C:inetpubARCOMERPserverodoomodulesloading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:inetpubARCOMERPserverodoomodulesloading.py", line 178, in load_module_graph
load_openerp_module(package.name)
File "C:inetpubARCOMERPserverodoomodulesmodule.py", line 358, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "C:inetpubARCOMERPserverodooaddonsauth_ldap__init__.py", line 3, in <module>
from . import models
File "C:inetpubARCOMERPserverodooaddonsauth_ldapmodels__init__.py", line 4, in <module>
from . import res_company_ldap
File "C:inetpubARCOMERPserverodooaddonsauth_ldapmodelsres_company_ldap.py", line 6, in 
<module>
from ldap.filter import filter_format
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:inetpubARCOMERPserverodoohttp.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:inetpubARCOMERPserverodoohttp.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ModuleNotFoundError: No module named 'ldap.filter'"

经过调查,我尝试通过多种方式安装PyLDAP库,但都不起作用。对于我现在的大问题,如何在windows 上安装pyldap

在Linux中,您可以使用以下方法解决问题:

python-m pip安装python ldap

对于Window,您可以查看此文档,但我从未亲自在窗口中安装软件包。

相关内容

  • 没有找到相关文章

最新更新