root@server01:~/ralph# ralphctl ldap_sync
Traceback (most recent call last):
File “/opt/ralph/ralph-core/bin/ralph”, line 10, in
sys.exit(prod())
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/ralph/main.py”, line 28, in prod
main(‘ralph.settings.prod’)
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/ralph/main.py”, line 14, in main
execute_from_command_line(sys.argv)
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/django/core/management/init.py”, line 354, in execute_from_command_line
utility.execute()
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/django/core/management/init.py”, line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/django/core/management/init.py”, line 190, in fetch_command
klass = load_command_class(app_name, subcommand)
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/django/core/management/init.py”, line 40, in load_command_class
module = import_module(’%s.management.commands.%s’ % (app_name, name))
File “/opt/ralph/ralph-core/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/opt/ralph/ralph-core/lib/python3.6/site-packages/ralph/accounts/management/commands/ldap_sync.py”, line 12, in
from ldap.controls import SimplePagedResultsControl
ModuleNotFoundError: No module named ‘ldap’
root@server01:~/ralph#