New question #271173 on Graphite: https://answers.launchpad.net/graphite/+question/271173
Hi, I'm trying to initialize database for Graphite. When issueing python manage.py syncdb command, got following error. is there someone can help me? [root@xpan-ma1 ~]# export GRAPHITE_ROOT=/opt/graphite [root@xpan-ma1 ~]# export PYTHONPATH=/usr/bin [root@xpan-ma1 ~]# export PYTHONPATH=$PYTHONPATH:$GRAPHITE_ROOT/webapp [root@xpan-ma1 ~]# cd $GRAPHITE_ROOT/webapp/graphite [root@xpan-ma1 graphite]# python manage.py syncdb Could not import graphite.local_settings, using defaults! Could not import graphite.local_settings, using defaults! Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 219, in execute self.validate() File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.7/site-packages/django/core/management/validation.py", line 35, 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 146, in get_app_errors self._populate() File "/usr/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in _populate self.load_app(app_name) File "/usr/lib/python2.7/site-packages/django/db/models/loading.py", line 78, 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 "/opt/graphite/webapp/tagging/managers.py", line 7, in <module> from tagging.models import Tag File "/opt/graphite/webapp/tagging/models.py", line 6, in <module> from django.utils.encoding import smart_text ImportError: cannot import name smart_text The OS is REHL7.1 x86_64 Python version is 2.7.5 Following is python site-package list [root@xpan-ma1 graphite]# pip list amqp (1.4.6) backports.ssl-match-hostname (3.4.0.2) chardet (2.0.1) configobj (4.7.2) configshell-fb (1.1.11) decorator (3.4.0) Django (1.1.4) django-tagging (0.4) ethtool (0.8) graphite-web (0.9.10) iniparse (0.4) javapackages (1.0.0) kitchen (1.1.1) kmod (0.1) langtable (0.0.13) lxml (3.2.1) M2Crypto (0.21.1) mod-wsgi (4.4.13) pciutils (1.7.3) pip (7.1.2) pycurl (7.19.0) pygobject (3.8.2) pygpgme (0.3) pyliblzma (0.5.3) pyOpenSSL (0.13.1) pyparsing (1.5.6) python-augeas (0.4.1) python-dateutil (1.5) python-dmidecode (3.10.13) python-ldap (2.4.19) python-memcached (1.57) pyudev (0.15) pyxattr (0.5.1) rhnlib (2.5.65) rhsm (1.10.12) rtslib-fb (2.1.46) setuptools (0.9.8) six (1.9.0) slip (0.4.0) slip.dbus (0.4.0) tagging (0.2.1) targetcli-fb (2.1.fb34) Twisted (15.4.0) txAMQP (0.6.2) txamqp-ext (0.3.1) urlgrabber (3.10) urwid (1.1.1) wheel (0.24.0) whisper (0.9.10) yum-langpacks (0.4.2) yum-metadata-parser (1.1.4) zope.interface (4.1.2) -- 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