【问题标题】:Trying to upgrade graphite and now it's not working properly尝试升级石墨,但现在无法正常工作
【发布时间】:2015-08-10 15:06:15
【问题描述】:

我尝试将石墨从版本“0.9.10”更新到“0.9.13”,但我破坏了石墨安装。

问题是图形图像不再呈现,但树视图仍然有效,所有旧数据仍然存在。

我得到的追溯是:

Traceback(最近一次调用最后一次):

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 99, in get_response
    request.path_info)
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 271, in resolve
    sub_match = pattern.resolve(new_path)
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 271, in resolve
    sub_match = pattern.resolve(new_path)
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 159, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 168, in _get_callback
    raise ViewDoesNotExist("Could not import %s. Error was: %s" % (mod_name, str(e)))
ViewDoesNotExist: Could not import graphite.render.views. Error was: cannot import name timezone

如果我尝试/dashboard,也会遇到同样的错误。

已安装 Python 2.7。

【问题讨论】:

    标签: python graphite


    【解决方案1】:

    答案是我在需要 1.4.1 时安装了 django 版本 1.3.1,安装它解决了我的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-10
      • 2019-04-19
      相关资源
      最近更新 更多