Univention Bugzilla – Bug 51021
univention-network-manager: make UCR templates python3-compatible
Last modified: 2020-04-02 14:47:44 CEST
The UCR templates of univention-network-manager have to be python3-compatible.
univention-network-manager.yaml 546a922baa2b | YAML Bug #51021 univention-network-manager (11.0.0-2) d00fc0306fae | Bug #51021: make UCR templates compatible to python3
univention-network-manager/conffiles/etc/default/ifplugd fails with a traceback: Traceback (most recent call last): File "/tmp/ucs-test-ucr-template.py", line 9, in <module> from univention.config_registry.interfaces import Interfaces File "/usr/lib/python3/dist-packages/univention/config_registry/interfaces.py", line 39, in <module> from backend import ConfigRegistry ImportError: No module named 'backend' # python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from univention.config_registry.interfaces import Interfaces Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/univention/config_registry/interfaces.py", line 39, in <module> from backend import ConfigRegistry ImportError: No module named 'backend' >>>
Well, we didn't fully migrate UCR to python3 yet. I can fix that now as well, not sure if there are more follow up problems.
Fixed in: univention-config-registry (14.0.0-14) ec62e272c659 | Bug #51021: FTBFS: UCR interfaces 8bdf95e4d8ad | Bug #51021: UCR interfaces: use absolute imports univention-config-registry.yaml bbd1bada17cd | YAML Bug #51021
OK: code change OK: changelog entry OK: advisory OK: package built and installable
<http://errata.software-univention.de/ucs/4.4/520.html> <http://errata.software-univention.de/ucs/4.4/521.html>