Univention Bugzilla – Bug 47055
User-Import not possible on school slave due missing python modules
Last modified: 2020-07-10 12:47:45 CEST
Following traceback is shown after opening the umc modul "Benutzerimport" at a school slave: Traceback (most recent call last): ImportError: No module named importer.utils.ldap_connection from ucsschool.importer.utils.ldap_connection import get_machine_connection File "/usr/lib/pymodules/python2.7/ucsschool/http_api/client.py", line 54, in <module> from ucsschool.http_api.client import Client, ConnectionError, PermissionError, ObjectNotFound, ServerError File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolimport/__init__.py", line 47, in <module> self.__module = __import__(file_, [], [], modname) File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/modserver.py", line 101, in _load_module Following package were installed: univention-install ucs-school-umc-import UCS Version: 4.2-3 errata313 (Lesum) It's look like there are some missing python modules from "ucs-school-import-http-api".
ucsschool/importer/utils/ldap_connection.py is in package ucs-school-import. That package will indeed not be installed on a DC slave. We'll have to see, how it can be moved to a ..-python or ..-common package.
I just remembered: The UMC-Module has been _design_ to be installed on the DC master only. I changed the bug to be a feature request.
This issue has been filed against UCS@school 4.2. UCS@school 4.2 is out of maintenance and many UCS@school components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS@school versions, please reopen it and update the UCS@school version. In this case please provide detailed information on how this issue is affecting you.