Устанавливаю PowerDNS-Admin по инструкции с
github.
Но при
db upgrade получаю ошибку.
Не понимаю с чем она связана. Модуль
distutils установлен.
(venv) root@kegnclsgfe:/srv/powerdns-admin# flask db upgrade
/srv/powerdns-admin/powerdnsadmin/lib/utils.py:124: SyntaxWarning: invalid escape sequence '\.'
return re.sub('\.{}$'.format(domain_name), '', record_name)
Usage: flask db upgrade [OPTIONS] [REVISION]
Try 'flask db upgrade --help' for help.
Error: While importing 'powerdnsadmin', an ImportError was raised:
Traceback (most recent call last):
File "/srv/powerdns-admin/venv/lib/python3.12/site-packages/flask/cli.py", line 218, in locate_app
__import__(module_name)
File "/srv/powerdns-admin/powerdnsadmin/__init__.py", line 7, in <module>
from .lib import utils
File "/srv/powerdns-admin/powerdnsadmin/lib/utils.py", line 9, in <module>
from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'