graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #06306
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:
Installed graphite-web.0.9.15 from epel 7 repo you recommended. Getting
different errors on syncdb now (bottom of post)
# yum install graphite-web.0.9.15
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.spro.net
* epel: linux.mirrors.es.net
* extras: centos.eecs.wsu.edu
* updates: centos.eecs.wsu.edu
No package graphite-web.0.9.15 available.
Error: Nothing to do
# yum install graphite-web-0.9.15
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.spro.net
* epel: linux.mirrors.es.net
* extras: centos.eecs.wsu.edu
* updates: centos.eecs.wsu.edu
Resolving Dependencies
--> Running transaction check
---> Package graphite-web.noarch 0:0.9.15-1.el7 will be installed
--> Processing Dependency: python-whisper >= 0.9.15 for package: graphite-web-0.9.15-1.el7.noarch
--> Processing Dependency: python-django >= 1.3 for package: graphite-web-0.9.15-1.el7.noarch
--> Processing Dependency: pyparsing for package: graphite-web-0.9.15-1.el7.noarch
--> Processing Dependency: django-tagging for package: graphite-web-0.9.15-1.el7.noarch
--> Processing Dependency: dejavu-serif-fonts for package: graphite-web-0.9.15-1.el7.noarch
--> Processing Dependency: dejavu-sans-fonts for package: graphite-web-0.9.15-1.el7.noarch
--> Running transaction check
---> Package Django.noarch 0:1.4-1mgc30 will be obsoleted
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package dejavu-serif-fonts.noarch 0:2.33-6.el7 will be installed
---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
---> Package python-django.noarch 0:1.6.11-5.el7 will be obsoleting
--> Processing Dependency: python-django-bash-completion = 1.6.11-5.el7 for package: python-django-1.6.11-5.el7.noarch
---> Package python-django-tagging.noarch 0:0.3.1-11.el7 will be installed
---> Package python-whisper.noarch 0:0.9.15-1.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package python-django-bash-completion.noarch 0:1.6.11-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================
Installing:
graphite-web noarch 0.9.15-1.el7 epel 1.8 M
python-django noarch 1.6.11-5.el7 epel 4.0 M
replacing Django.noarch 1.4-1mgc30
Installing for dependencies:
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
dejavu-serif-fonts noarch 2.33-6.el7 base 776 k
pyparsing noarch 1.5.6-9.el7 base 94 k
python-django-bash-completion noarch 1.6.11-5.el7 epel 16 k
python-django-tagging noarch 0.3.1-11.el7 epel 58 k
python-whisper noarch 0.9.15-1.el7 epel 42 k
Transaction Summary
=======================================================================================================================================================================
Install 2 Packages (+7 Dependent packages)
Total download size: 8.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/9): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:01
(2/9): dejavu-serif-fonts-2.33-6.el7.noarch.rpm | 776 kB 00:00:00
(3/9): pyparsing-1.5.6-9.el7.noarch.rpm | 94 kB 00:00:00
(4/9): graphite-web-0.9.15-1.el7.noarch.rpm | 1.8 MB 00:00:01
(5/9): python-django-1.6.11-5.el7.noarch.rpm | 4.0 MB 00:00:00
(6/9): python-django-bash-completion-1.6.11-5.el7.noarch.rpm | 16 kB 00:00:00
(7/9): python-django-tagging-0.3.1-11.el7.noarch.rpm | 58 kB 00:00:00
(8/9): python-whisper-0.9.15-1.el7.noarch.rpm | 42 kB 00:00:00
(9/9): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:05
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.5 MB/s | 8.2 MB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : dejavu-fonts-common-2.33-6.el7.noarch 1/10
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 2/10
Installing : dejavu-serif-fonts-2.33-6.el7.noarch 3/10
Installing : python-django-bash-completion-1.6.11-5.el7.noarch 4/10
Installing : python-django-1.6.11-5.el7.noarch 5/10
Installing : python-django-tagging-0.3.1-11.el7.noarch 6/10
Installing : pyparsing-1.5.6-9.el7.noarch 7/10
Installing : python-whisper-0.9.15-1.el7.noarch 8/10
Installing : graphite-web-0.9.15-1.el7.noarch 9/10
Erasing : Django-1.4-1mgc30.noarch 10/10
warning: file /usr/lib/python2.7/site-packages/Django-1.4-py2.7.egg-info: remove failed: No such file or directory
Verifying : graphite-web-0.9.15-1.el7.noarch 1/10
Verifying : python-whisper-0.9.15-1.el7.noarch 2/10
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 3/10
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 4/10
Verifying : dejavu-serif-fonts-2.33-6.el7.noarch 5/10
Verifying : python-django-tagging-0.3.1-11.el7.noarch 6/10
Verifying : python-django-1.6.11-5.el7.noarch 7/10
Verifying : pyparsing-1.5.6-9.el7.noarch 8/10
Verifying : python-django-bash-completion-1.6.11-5.el7.noarch 9/10
Verifying : Django-1.4-1mgc30.noarch 10/10
Installed:
graphite-web.noarch 0:0.9.15-1.el7 python-django.noarch 0:1.6.11-5.el7
Dependency Installed:
dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 dejavu-serif-fonts.noarch 0:2.33-6.el7
pyparsing.noarch 0:1.5.6-9.el7 python-django-bash-completion.noarch 0:1.6.11-5.el7 python-django-tagging.noarch 0:0.3.1-11.el7
python-whisper.noarch 0:0.9.15-1.el7
Replaced:
Django.noarch 0:1.4-1mgc30
Complete!
#
==============Different errors now========
# 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'
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.