UCS 5.0 upgrade failed: python-ucr-template-compatibility univention-app-appliance

Per your request I’m starting a thread because the univention-app-appliance package seems to be incompatible:

python_ucr_template_compatibility:
The following UCR templates are not compatible with Python 3:
/etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json (package: univention-app-appliance)

I got the same error here, starting update from 4.4-8 errata992

Same error, now on 4.4-8 errata1009

OK, I deployed another server and compared the new appliance.json file with the one on the server where the upgrade is failing.

OLD appliance.json file:

@!@
import json

def get_ucr_entry(ucrKey, key=None, defaultValue=None):
if key is None:
key = ucrKey
return (key, configRegistry.get(ucrKey, defaultValue))

ucr_vars = [
(‘umc/web/appliance/name’, ‘appliance_name’),
(‘umc/web/appliance/close_first_steps’, ‘close_first_steps’),
]
data = dict([get_ucr_entry(*i) for i in ucr_vars])

print json.dumps(data, indent=2)
@!@

NEW appliance.json file:

@!@
import json

def get_ucr_entry(ucrKey, key=None, defaultValue=None):
if key is None:
key = ucrKey
return (key, configRegistry.get(ucrKey, defaultValue))

ucr_vars = [
(‘umc/web/appliance/name’, ‘appliance_name’),
(‘umc/web/appliance/close_first_steps’, ‘close_first_steps’),
]
data = dict([get_ucr_entry(*i) for i in ucr_vars])

print(json.dumps(data, indent=2))
@!@

I haven’t yet retried to upgrade the old server, but if that’s the reason, it’s just unbelievable.