Univention Bugzilla – Bug 51332
management/univention-management-console-module-diagnostic: migrate to python3
Last modified: 2021-05-25 15:57:52 CEST
The UMC module of management/univention-management-console-module-diagnostic has to be python3-compatible.
First steps done in branch arequate/bug49898-samba413 e729cecbc7 | Migrate to Python3
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/__init__.py", line 280, in execute result = execute(umc_module, **kwargs) File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/plugins/55_user_migration.py", line 27, in run raise Critical(description + stdout, buttons=[{ TypeError: can only concatenate str (not "bytes") to str
That plugin can be removed, as it calls: /usr/share/univention-directory-manager-tools/univention-migrate-users-to-ucs4.3: No such file or directory
No clue why that script was missing, it's present now: univention-directory-manager-tools: /usr/share/univention-directory-manager-tools/univention-migrate-users-to-ucs4.3
The related commits are: univention-management-console-module-diagnostic (6.0.0-5) ab09d23ef258 | Bug #51332: adjust hashbangs to Python 3 d7c9731df4f8 | Bug #51332: Migrate diagnostic UMC module to Python3 ucs-test (10.0.1-24) d7c9731df4f8 | Bug #51332: Migrate diagnostic UMC module to Python3
(In reply to Florian Best from comment #2) > Traceback (most recent call last): > File > "/usr/lib/python3/dist-packages/univention/management/console/modules/ > diagnostic/__init__.py", line 280, in execute > result = execute(umc_module, **kwargs) > File > "/usr/lib/python3/dist-packages/univention/management/console/modules/ > diagnostic/plugins/55_user_migration.py", line 27, in run > raise Critical(description + stdout, buttons=[{ > TypeError: can only concatenate str (not "bytes") to str This and some others were still unfixed. I did this in: univention-management-console-module-diagnostic (6.0.0-7) 5d8008f9c53d | fixup! Bug #51332: Migrate diagnostic UMC module to Python3 I added a changelog entry: changelog-5.0-0.xml 52751cdde87f | Changelog Bug #51332 OK: All tests are passing by default ~OK: we don't have tests for the correctness of the plugins ~OK: if a plugin is not correctly migrated if will at least fail with any exception/traceback.
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".