nPercentile rendering fails

Bug #1073699 reported by Nicholas Leskiw
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Graphite
New
Undecided
Nicholas Leskiw

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 104, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return func(requestContext, *args)
  File "/opt/graphite/webapp/graphite/render/functions.py", line 1286, in nPercentile
    name = 'nPercentile(%s, %.1f)' % (n, s_copy.name, perc_val)
TypeError: float argument required, not str

Changed in graphite:
assignee: nobody → Nicholas Leskiw (nleskiw)
Revision history for this message
Josh Braegger (rckclmbr) wrote :

I ran into this as well, it's fixed in development. For the latest stable release (0.9.10), just change line 1383 of "render/functions.py" to:

name = 'nPercentile(%.1f, %s)' % (n, s_copy.name)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.