Univention Bugzilla – Bug 51282
Fix python3 compatibility in python-notifier
Last modified: 2021-05-25 16:03:21 CEST
When running the UMC-Server in Python 3 with python-notifier I receive a crash: Traceback (most recent call last): File "/usr/sbin/univention-management-console-server", line 244, in <module> umc_daemon.do_action() File "/usr/lib/python3/dist-packages/daemon/runner.py", line 267, in do_action func(self) File "/usr/lib/python3/dist-packages/daemon/runner.py", line 186, in _start self.app.run() File "/usr/sbin/univention-management-console-server", line 211, in run notifier.loop() File "/usr/lib/python3/dist-packages/notifier/nf_generic.py", line 296, in loop step() File "/usr/lib/python3/dist-packages/notifier/nf_generic.py", line 239, in step for i, timer in __timers.items(): RuntimeError: dictionary changed size during iteration Patch: notifier/nf_generic.py +239 -» » for i, timer in __timers.items(): +» » for i, timer in list(__timers.items()): +++ This bug was initially created as a clone of Bug #50461 +++ python-notifier needs to be migrated to Python 3.
Fixed in: python-notifier (0.9.7-8) | Bug #51282: fix python3 compatibility for timers:
Another issue: notifier.Callback defined __cmp__ and __nonzero__ which was not converted. This leads to memory leaks (Bug #50583) in Python 3. Fixed in: 9927189962ab | Bug #51282: fix notifier.Callback comparability
OK: be11167292fcf9b7fe697b4d3db21568c51a2fae OK: 9927189962ab OK: tox (In reply to Florian Best from comment #1) > Fixed in: > > python-notifier (0.9.7-8) > | Bug #51282: fix python3 compatibility for timers: Wrong reference, should be be11167292fcf9b7fe697b4d3db21568c51a2fae Fix iteration in python3 OK: No changelog required as this is a fixup of https://errata.software-univention.de/#/?erratum=4.4x400
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".