尝试升级石墨,但现在无法正常工作
Trying to upgrade graphite and now it's not working properly
我尝试将 Graphite 从“0.9.10”版本更新到“0.9.13”,但我破坏了 Graphite 安装。
问题是图形图像不再呈现,但树视图仍然有效,所有旧数据仍然存在。
我得到的回溯是:
回溯(最近调用最后):
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 已安装。
答案是我在需要 1.4.1 时安装了 django 版本 1.3.1,安装它解决了我的问题。
我尝试将 Graphite 从“0.9.10”版本更新到“0.9.13”,但我破坏了 Graphite 安装。
问题是图形图像不再呈现,但树视图仍然有效,所有旧数据仍然存在。
我得到的回溯是:
回溯(最近调用最后):
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 已安装。
答案是我在需要 1.4.1 时安装了 django 版本 1.3.1,安装它解决了我的问题。