Karaage-Cluster/karaage — Issue #55: usage graph error
Author: sorrison
Created: 2012-02-15 22:49:33+00:00
State: open

Go to (for example) https://help.vlsci.unimelb.edu.au/accounts/usage/institute/1/?start=2010-03-16;end=2010-07-01 to reproduce.

Traceback (most recent call last):

File "/usr/lib/pymodules/python2.5/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/usr/lib/pymodules/python2.5/karaage/usage/views.py", line 243, in project_usage
graph = get_project_trend_graph_url(project, start, end, machine_category)

File "/usr/lib/pymodules/python2.5/karaage/util/graphs.py", line 120, in get_project_trend_graph_url
gen_project_graph(project, start, end, machine_category)

File "/usr/lib/pymodules/python2.5/karaage/graphs/__init__.py", line 27, in gen_project_graph
return grapher.gen_project_graph(project, start, end, machine_category)

File "/usr/lib/pymodules/python2.5/karaage/graphs/matplotlib9.py", line 172, in gen_project_graph
ax.bar(x_data, data, color=get_colour(count), edgecolor=get_colour(count), align='center')

File "/usr/lib/pymodules/python2.5/matplotlib/axes.py", line 4245, in bar
nbars)

AssertionError: incompatible sizes: argument 'height' must be length 107 or scalar

,
POST:,
COOKIES:{'SQ_SYSTEM_SESSION': '9e7e5909a3075d330be827a839a0e74c',
'__utma': '195587947.3509302780325587000.1229650421.1278887427.1278904830.335',
'__utmc': '195587947',
'__utmz': '196603112.1278649468.8.7.utmcsr=vlsci.unimelb.edu.au|utmccn=(referral)|utmcmd=referral|utmcct=/',
'csrftoken': 'b1884bbe126378f920cd67eb56bf07ef',
'sessionid': '9db87404b4381d6772258d8c67b140db'},
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': 0,
'CONTENT_TYPE': None,
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': '__utma=196603112.616546974.1276045954.1278565153.1278649468.8; __utma=195587947.3509302780325587000.1229650421.1278887427.1278904830.335; __utmz=195587947.1273706298.248.15.utmcsr=wiki.vlsci.unimelb.edu.au|utmccn=(referral)|utmcmd=referral|utmcct=/foswiki/bin/view/Public/HpcFaq; __utmz=196603112.1278649468.8.7.utmcsr=vlsci.unimelb.edu.au|utmccn=(referral)|utmcmd=referral|utmcct=/; csrftoken=b1884bbe126378f920cd67eb56bf07ef; sessionid=9db87404b4381d6772258d8c67b140db; __utmc=196603112; SQ_SYSTEM_SESSION=9e7e5909a3075d330be827a839a0e74c; __utmc=195587947',
'HTTP_HOST': 'help.vlsci.unimelb.edu.au',
'HTTP_KEEP_ALIVE': '300',
'HTTP_REFERER': 'https://help.vlsci.unimelb.edu.au/accounts/usage/institute/1/?start=2010-03-16;end=2010-07-01',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401 Ubuntu/9.10 (karmic) Firefox/3.5.9',
'PATH_INFO': u'/usage/institute/1/VR0028/',
'PATH_TRANSLATED': None,
'QUERY_STRING': 'start=2010-03-16;end=2010-07-01',
'REMOTE_ADDR': '128.250.103.219',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '/accounts',
'SERVER_NAME': 'help.vlsci.unimelb.edu.au',
'SERVER_PORT': 443,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'}>