Bug 49217 - [4.4] ImportError: No module named import_api.constants
[4.4] ImportError: No module named import_api.constants
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v2-errata
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on: 48576
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-02 12:37 CEST by Florian Best
Modified: 2019-05-29 14:04 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.343
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019040121000711, 2019040421000232
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2019-04-02 12:37:36 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
Comment 1 Florian Best univentionstaff 2019-04-02 12:38:31 CEST
I don't know how this can happen?
Maybe during an upgrade?
Maybe due to changing from absolute to relative imports? (e817384235d925c8282d31109a5fdad33ac16ca0 / Bug #49037).
Comment 2 Daniel Tröder univentionstaff 2019-04-10 13:27:52 CEST
The HTTP-API-server package has probably not been installed.
Comment 3 Florian Best univentionstaff 2019-04-10 13:37:08 CEST
(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?
Comment 4 Daniel Tröder univentionstaff 2019-04-10 14:58:44 CEST
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.
Comment 5 Daniel Tröder univentionstaff 2019-05-13 21:48:09 CEST
Merge fixes from Bug #48576 into 4.4.
Comment 6 Daniel Tröder univentionstaff 2019-05-13 22:04:58 CEST
[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)
Comment 7 Daniel Tröder univentionstaff 2019-05-16 08:59:57 CEST
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)
Comment 8 Daniel Tröder univentionstaff 2019-05-20 10:23:59 CEST
[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)
Comment 9 Daniel Tröder univentionstaff 2019-05-20 10:37:16 CEST
[4.4 754299084] Bug #49217: fix typo
[4.4 6779b44bc] Bug #49217: advisory update

ucs-school-import (17.0.6-18)
Comment 10 Daniel Tröder univentionstaff 2019-05-22 15:33:32 CEST
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)
Comment 11 Sönke Schwardt-Krummrich univentionstaff 2019-05-23 17:00:17 CEST
OK: code change
OK: functional change
OK: ucs-test
OK: changelog entry
OK: advisory
Comment 12 Sönke Schwardt-Krummrich univentionstaff 2019-05-29 14:04:49 CEST
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.