石墨渲染视图抛出异常

时间:2014-07-16 18:52:16

标签: python django graphite

当我尝试获得石墨渲染视图时,我得到了跟踪堆栈跟踪

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "../webapp/graphite/render/views.py", line 113, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "../webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "../webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "../webapp/graphite/render/evaluator.py", line 24, in evaluateTokens
    return fetchData(requestContext, tokens.pathExpression)
  File "../webapp/graphite/render/datalib.py", line 230, in fetchData
    dbResults = dbFile.fetch( timestamp(startTime), timestamp(endTime), timestamp(now))
TypeError: fetch() takes exactly 3 arguments (4 given)

如果我查看我的datalib.py,我会发现以下

...
...
228   for dbFile in store.find(pathExpr):
229     log.metric_access(dbFile.metric_path)
230     dbResults = dbFile.fetch( timestamp(startTime), timestamp(endTime), timestamp(now))
231     results = dbResults
232 
...
...

在第230行,dbFile.fetch正好有3个参数。为什么我的堆栈跟踪显示(4给定)

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

我有同样的问题;在我的情况下问题是我从pip存储库安装了石墨网(pip install graphite-web);我的Raspberry pi(raspbian)上的包管理器里有碳(收集器引擎)和耳语(存储引擎)。

结果:组件的不同版本。通过点子(http://graphite.wikidot.com/downloads)安装完所有内容后,图表显示出来。