graphite-web icon indicating copy to clipboard operation
graphite-web copied to clipboard

Running Django-admin gives ImportError: No module named readers.remote

Open hapx101 opened this issue 9 years ago • 7 comments

After running setup.py for both graphite-web and carbon, I ran PYTHONPATH=/opt/graphite/webapp/ django-admin.py migrate --settings=graphite.settings --run-syncdb --noinput. I get this error.

Traceback (most recent call last): File "/bin/django-admin.py", line 5, in management.execute_from_command_line() File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 353, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 345, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 398, in execute self.check() File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 426, in check include_deployment_checks=include_deployment_checks, File "/usr/lib/python2.7/site-packages/django/core/checks/registry.py", line 75, in run_checks new_errors = check(app_configs=app_configs) File "/usr/lib/python2.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config return check_resolver(resolver) File "/usr/lib/python2.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver for pattern in resolver.url_patterns: File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 33, in get res = instance.dict[self.name] = self.func(instance) File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 417, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 33, in get res = instance.dict[self.name] = self.func(instance) File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 410, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module import(name) File "/opt/graphite/webapp/graphite/urls.py", line 22, in url('^render/?', include('graphite.render.urls')), File "/usr/lib/python2.7/site-packages/django/conf/urls/init.py", line 52, in include urlconf_module = import_module(urlconf_module) File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module import(name) File "/opt/graphite/webapp/graphite/render/urls.py", line 16, in from . import views File "/opt/graphite/webapp/graphite/render/views.py", line 34, in from graphite.remote_storage import extractForwardHeaders, prefetchRemoteData File "/opt/graphite/webapp/graphite/remote_storage.py", line 3, in from graphite.finders.remote import RemoteStore, prefetchRemoteData # noqa # pylint: disable=unused-import File "/opt/graphite/webapp/graphite/finders/remote.py", line 16, in from graphite.readers.remote import RemoteReader ImportError: No module named readers.remote

I couldn't find anything about this.

System Details: CentOS7 Python 2.7.5 Django 1.9.13 txAMQP (0.4) whisper (1.1.0) django-tagging (0.4.3) cairocffi (0.8.0) pytz (2017.2) scandir (1.5) Twisted (17.1.0)

hapx101 avatar May 30 '17 10:05 hapx101

@hapx101 - are you using master? Try to use 1.0.x branch

@iksaif, could you please check ?

deniszh avatar May 30 '17 11:05 deniszh

@deniszh - Yes, I am using the master. Trying with 1.0.x branch.

Edit: 1.0.x branch works.

hapx101 avatar May 30 '17 11:05 hapx101

Can you try with https://github.com/graphite-project/graphite-web/pull/1946 ?

iksaif avatar May 30 '17 12:05 iksaif

I am also getting the same error. My installation script is available in https://raw.githubusercontent.com/yesoreyeram/graphite-setup/master/graphite-install.sh

yesoreyeram avatar May 30 '17 15:05 yesoreyeram

@yesoreyeram - did #1946 fix problem for you?

deniszh avatar May 30 '17 16:05 deniszh

yes @deniszh . Now it is working fine.

yesoreyeram avatar May 31 '17 11:05 yesoreyeram

Fixed now.

deniszh avatar Jun 04 '17 17:06 deniszh