Problem: Apple School Manager - No module named 'DNS'

Problem

You get the following traceback with the Apple School Manager, because the package python3-dns is missing on the system.

Traceback (most recent call last):
  File "/usr/sbin/asm-upload", line 35, in <module>
    from univention.asm.asm_upload import ASMUpload
  File "/usr/lib/python3/dist-packages/univention/asm/asm_upload.py", line
41, in <module>
    from .csv.zip_file import AsmZipFile
  File "/usr/lib/python3/dist-packages/univention/asm/csv/zip_file.py", line
48, in <module>
    from .csv_file import create_csv_files
  File "/usr/lib/python3/dist-packages/univention/asm/csv/csv_file.py", line
52, in <module>
    from univention.asm.models.classes import AsmClass
  File "/usr/lib/python3/dist-packages/univention/asm/models/classes.py",
line 45, in <module>
    from ..utils import get_ldap_connection, get_person_id, get_ucr
  File "/usr/lib/python3/dist-packages/univention/asm/utils.py", line 37, in
<module>
    import DNS
ModuleNotFoundError: No module named 'DNS'

Root Cause: Bug 57189

Solution

To fix this issue, just install the missing package with:

 univention-install python3-dns
Mastodon