Я устанавливаю Graphite на Debian 9 Я следую этому руководству
Текущий каталог
root@debian:/opt/graphite/webapp/graphite# pwd
/opt/graphite/webapp/graphite
ошибка
root@debian:/opt/graphite/webapp/graphite# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 2, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
root@debian:/opt/graphite/webapp/graphite#
Содержание manage.py
root@debian:/opt/graphite/webapp/graphite# more manage.py
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've
customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings
.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)
if __name__ == "__main__":
execute_manager(settings)
Версия Python и Django
root@debian:/opt/graphite/webapp/graphite# python --version
Python 2.7.13
root@debian:/opt/graphite/webapp/graphite# django-admin --version
1.10.7
root@debian:/opt/graphite/webapp/graphite#
Версия Debian
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.12 (stretch)
Release: 9.12
Codename: stretch
Есть идеи, как исправить эту ошибку?