Bug 52619 - Migrate ucs-school-netlogon to Python 3
Migrate ucs-school-netlogon to Python 3
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 5.0
Other Linux
: P5 normal (vote)
: UCS@school 5.0 v1
Assigned To: Florian Best
Felix Botner
: interim-3
Depends on:
Blocks: 52578
  Show dependency treegraph
 
Reported: 2021-01-12 15:23 CET by Florian Best
Modified: 2021-11-29 17:20 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-01-12 15:23:42 CET
The package ucs-school-netlogon needs to be migrated to Python 3.

See: https://hutten.knut.univention.de/mediawiki/index.php/Python_3_Migration
Comment 1 Florian Best univentionstaff 2021-06-19 03:02:09 CEST
Nothing to do, conffiles/ucs-school-netlogon.py is already Python 3 compatible.
Comment 3 Felix Botner univentionstaff 2021-08-05 16:32:21 CEST
-> ucr set ucsschool/netlogon/checkReturn='false' 
Setting ucsschool/netlogon/checkReturn
Module: ucs-school-netlogon
module 'sys' has no attribute 'maxint'


sys.maxint is no longer available in python3, maybe sys.maxsize (?)
Comment 4 Florian Best univentionstaff 2021-08-05 16:40:25 CEST
(In reply to Felix Botner from comment #3)
> -> ucr set ucsschool/netlogon/checkReturn='false' 
> Setting ucsschool/netlogon/checkReturn
> Module: ucs-school-netlogon
> module 'sys' has no attribute 'maxint'
> 
> 
> sys.maxint is no longer available in python3, maybe sys.maxsize (?)

Yes, thanks!

    maxint -- the largest supported integer (the smallest is -maxint-1)
    maxsize -- the largest supported length of containers.

"""The sys.maxint constant was removed, since there is no longer a limit to the value of integers. However, sys.maxsize can be used as an integer larger than any practical list or string index. It conforms to the implementation’s “natural” integer size and is typically the same as sys.maxint in previous releases on the same platform (assuming the same build options)."""
https://docs.python.org/3.1/whatsnew/3.0.html#integers

ucs-school-netlogon (10.0.2)
b1f78454a84e | Bug #52619: migrate ucs-school-netlogon to Python 3

changelog-ucsschool-5.0-de.xml
f8721686b876 | Changlog entry Bug #52608 Bug #52609 Bug #52611 Bug #52612 Bug #52613 Bug #52614 Bug #52615 Bug #52616 Bug #52617 Bug #52618 Bug #52619 Bug #52620 Bug #52621 Bug #52622 Bug #52623 Bug #52624 Bug #52625 Bug #52626 Bug #52627 Bug #52628 Bug #52629 Bug #52630 Bug #52631 Bug #52632 Bug #52633 Bug #52634 Bug #52635 Bug #52636 Bug #52637 Bug #52638 Bug #52639 Bug #52640 Bug #52641 Bug #52642 Bug #52643 Bug #52644 Bug #52645
Comment 5 Felix Botner univentionstaff 2021-08-05 17:00:17 CEST
OK
Comment 6 Jürn Brodersen univentionstaff 2021-11-29 17:20:24 CET
UCS@school 5.0 v1 has been released.

https://docs.software-univention.de/release-notes-ucsschool-5.0v1-de.html

If this error occurs again, please clone this bug.