Bug 48576 - [4.3] ImportError: No module named import_api.constants
[4.3] ImportError: No module named import_api.constants
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
UCS@school 4.3
Other Linux
: P5 normal (vote)
: UCS@school 4.3 v8-errata
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on:
Blocks: 49217
  Show dependency treegraph
 
Reported: 2019-01-31 19:11 CET by Johannes Keiser
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: 2019010321000105, 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 Johannes Keiser univentionstaff 2019-01-31 19:11:39 CET
Version: 4.3-3 errata390 (Neustadt) - UCS@school 4.3 v6

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

Role: domaincontroller_master
Comment 1 Daniel Tröder univentionstaff 2019-04-10 13:27:46 CEST
The HTTP-API-server package has probably not been installed.
Comment 2 Christian Völker univentionstaff 2019-04-11 15:47:30 CEST
Hmmm...

which package you are referring to?
============================================================
root@master:~# apt search server| grep api

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
dovecot-gssapi/unbekannt 1:2.2.27-3+deb9u4 amd64
libbrlapi-dev/unbekannt 5.4-7+deb9u1 amd64
libgssapi-krb5-2/unbekannt,now 1.15-1+deb9u1 amd64  [installiert]
libkf5akonadisearchxapian5/unbekannt 16.04.3-1+b2 amd64
  Akonadi search xapian library
mariadb-plugin-gssapi-server/unbekannt 10.1.37-0+deb9u1 amd64
ucs-school-import-http-api/unbekannt 17.0.6-4A~4.4.0.201904091329 all [aktualisierbar von: 17.0.5-9A~4.4.0.201903261550]
ucs-school-import-http-api-client/unbekannt 17.0.6-4A~4.4.0.201904091329 all [aktualisierbar von: 17.0.5-9A~4.4.0.201903261550]
ucs-school-import-http-api-common/unbekannt 17.0.6-4A~4.4.0.201904091329 all [aktualisierbar von: 17.0.5-9A~4.4.0.201903261550]
ucs-school-import-http-api-doc/unbekannt 17.0.6-4A~4.4.0.201904091329 all
xapian-tools/unbekannt 1.4.3-2+deb9u3 amd64
  Basic tools for Xapian search engine library
============================================================
root@master:~# univention-app info
UCS: 4.4-0 errata47
Installed: dhcp-server=12.0 ucsschool=4.4 v2
Comment 3 Daniel Tröder univentionstaff 2019-04-11 16:08:44 CEST
root@m150:~# dpkg -S /usr/share/pyshared/ucsschool/http_api/import_api/constants.py 

→ ucs-school-import-http-api
Comment 4 Daniel Tröder univentionstaff 2019-05-13 21:42:30 CEST
[4.3] 68612bdff Bug #48576: move constants.py, required by client, to common package
[4.3] d814b218b Bug #48576: depend on package containing constants.py
[4.3] 8a7f36db3 Bug #48576: advisories

ucs-school-import (16.0.3-10)
ucs-school-umc-import (1.0.1-6)
Comment 5 Daniel Tröder univentionstaff 2019-05-16 09:10:59 CEST
[4.3] 03996938c Bug #48576: run update-python-modules before using manage.py
[4.3] 37faa1a87 Bug #48576: advisory update

ucs-school-import (16.0.3-11)
Comment 6 Daniel Tröder univentionstaff 2019-05-20 10:39:39 CEST
[4.3] aa9129983 Bug #48576: reload (instead of restart) services that support it
[4.3] 866fd7b8d Bug #48576: fix Python modules installation path
[4.3] 117bf8bb0 Bug #49217: advisory update

ucs-school-import (16.0.3-12)
Comment 7 Daniel Tröder univentionstaff 2019-05-22 15:35:58 CEST
[4.3] 4f94c9b6a Bug #48576: depend on same version of -common package
[4.3] 01974199a Bug #48576: advisory update

ucs-school-import (16.0.3-14)
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2019-05-23 17:00:12 CEST
OK: code change
OK: functional change
OK: ucs-test
OK: changelog entry
OK: advisory
Comment 9 Sönke Schwardt-Krummrich univentionstaff 2019-05-29 14:04:52 CEST
UCS@school 4.3 v8 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.3v8-de.html

If this error occurs again, please clone this bug.