New question #328115 on Graphite:
https://answers.launchpad.net/graphite/+question/328115

I'm following the documentation here 
http://graphite.readthedocs.io/en/latest/install.html

New install on Centos 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 
2015 x86_64 x86_64 x86_64 GNU/Linux

I used the pip install method and got all the way to the Webapp Database Setup 
section here:

http://graphite.readthedocs.io/en/latest/config-database-setup.html

After resolving some issues like installing South I reached this point and am 
stuck. Any advice would be greatly appreciated. Thanks.

# pwd
/opt/graphite
# echo $GRAPHITE_ROOT
/opt/graphite
# ll
total 12
drwxr-xr-x 2 root   root   4096 Aug  3 14:48 bin
drwxr-xr-x 2 root   root   4096 Aug  3 14:48 conf
drwxr-xr-x 3 root   root     77 Aug  3 14:48 examples
drwxr-xr-x 8 root   root   4096 Aug  3 14:48 lib
drwxrwxr-x 6 apache apache   52 Aug  3 14:44 storage
drwxr-xr-x 4 root   root     35 Aug  3 15:37 webapp
# PYTHONPATH=$GRAPHITE_ROOT/webapp django-admin.py migrate 
--settings=graphite.settings --run-syncdb
Unknown command: 'migrate'
Type 'django-admin.py help' for usage.


During my search for answers in this forum I found some different syntax and 
tried it, but got this error:

# 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 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 
196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 
231, in execute
    self.validate()
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 
266, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.7/site-packages/django/core/management/validation.py", 
line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/python2.7/site-packages/django/db/models/loading.py", line 
158, in get_app_errors
    self._populate()
  File "/usr/lib/python2.7/site-packages/django/db/models/loading.py", line 67, 
in _populate
    self.load_app(app_name)
  File "/usr/lib/python2.7/site-packages/django/db/models/loading.py", line 88, 
in load_app
    models = import_module('.models', app_name)
  File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, 
in import_module
    __import__(name)
  File "/opt/graphite/webapp/graphite/events/models.py", line 6, in <module>
    from tagging.managers import ModelTaggedItemManager
  File "/usr/lib/python2.7/site-packages/tagging/managers.py", line 6, in 
<module>
    from django.db.models.query import QuerySet, parse_lookup
ImportError: cannot import name parse_lookup

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : graphite-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to