graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #06312
Re: [Question #328115]: Trouble setting up db on new Graphite install
Question #328115 on Graphite changed:
https://answers.launchpad.net/graphite/+question/328115
Blue Jakester gave more information on the question:
I wanted to summarize what I've done so far to try and resolve the db
initialization problem. Any additional advice would be greatly
apprciated.
* installed Django version 1.9 (was running 1.4)
* installed graphite-web version 0.9.15
Now receiving the following when I try to initialize the db:
# pwd
/opt/graphite
# PYTHONPATH=$GRAPHITE_ROOT/webapp django-admin.py migrate --settings=graphite.settings --run-syncdb
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/usr/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 9, in <module>
from django.apps import apps
File "/usr/lib/python2.7/site-packages/django/apps/__init__.py", line 1, in <module>
from .config import AppConfig
File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 4, in <module>
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
ImportError: cannot import name AppRegistryNotReady
# django-admin.py syncdb --settings=graphite.settings
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/usr/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 9, in <module>
from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal, emit_pre_sync_signal
File "/usr/lib/python2.7/site-packages/django/core/management/sql.py", line 9, in <module>
from django.db import models
File "/usr/lib/python2.7/site-packages/django/db/models/__init__.py", line 7, in <module>
from django.db.models.manager import Manager
File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 58, in <module>
class Manager(six.with_metaclass(RenameManagerMethods)):
File "/usr/lib/python2.7/site-packages/django/utils/six.py", line 778, in __new__
return meta(name, bases, d)
File "/usr/lib/python2.7/site-packages/django/utils/deprecation.py", line 39, in __new__
for base in inspect.getmro(new_class):
AttributeError: 'module' object has no attribute 'getmro'
Thanks
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.