Univention Bugzilla – Bug 49217
[4.4] ImportError: No module named import_api.constants
Last modified: 2019-05-29 14:04:49 CEST
Version: 4.4-0 errata30 (Blumenthal) - UCS@school 4.4 v2 Traceback(24041a897cc4ad39788d0fbc94bbd081): Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 101, in _load_module self.__module = __import__(file_, [], [], modname) File "%PY2.7%/univention/management/console/modules/schoolimport/__init__.py", line 47, in <module> from ucsschool.http_api.import_api.constants import JOB_ABORTED, JOB_FINISHED ImportError: No module named import_api.constants
I don't know how this can happen? Maybe during an upgrade? Maybe due to changing from absolute to relative imports? (e817384235d925c8282d31109a5fdad33ac16ca0 / Bug #49037).
The HTTP-API-server package has probably not been installed.
(In reply to Daniel Tröder from comment #2) > The HTTP-API-server package has probably not been installed. Shouldn't it be a dependency then?
It's just an idea, I haven't verified it yet. The idea is, that server and client can be installed separately. But then there should be a *-common package for that. I'll look into it later, and will report here.
Merge fixes from Bug #48576 into 4.4.
[4.4] eaf927e2d Bug #49217: move constants.py, required by client, to common package [4.4] 197d96a1f Bug #49217: depend on package containing constants.py [4.4] e48dfcdef Bug #48576: advisories ucs-school-import (17.0.6-15) ucs-school-umc-import (2.0.0-1)
The join script 40ucs-school-import-http-api.inst fails in Jenkins: http://jenkins.knut.univention.de:8080/job/UCSschool-4.4/job/Install%20Singleserver/ws/Config/s4/TestGroup/base1/test/join.log The Python modules have not yet been recompiled at their now position. This is now enforced in the join script. [4.4] 05b0e3bed Bug #49217: run update-python-modules before using manage.py [4.4] 1293a9831 Bug #49217: advisory update ucs-school-import (17.0.6-16)
[4.4] 264666030 Bug #49217: reload (instead of restart) services that support it [4.4] 3626c9ffe Bug #49217: fix Python modules installation path [4.4] 3945d0e94 Bug #49217: advisory update ucs-school-import (17.0.6-17)
[4.4 754299084] Bug #49217: fix typo [4.4 6779b44bc] Bug #49217: advisory update ucs-school-import (17.0.6-18)
Sorry - commited using Bug# from 4.3 bug: [4.4] c69985930 Bug #48576: depend on same version of -common package [4.4] 4ec6719b6 Bug #48576: advisory update ucs-school-import (17.0.6-20)
OK: code change OK: functional change OK: ucs-test OK: changelog entry OK: advisory
UCS@school 4.4 v2 has been released. https://docs.software-univention.de/changelog-ucsschool-4.4v2-de.html If this error occurs again, please clone this bug.