{"action":"opened","issue":{"url":"https://api.github.com/repos/autotest/autotest/issues/911","labels_url":"https://api.github.com/repos/autotest/autotest/issues/911/labels{/name}","comments_url":"https://api.github.com/repos/autotest/autotest/issues/911/comments","events_url":"https://api.github.com/repos/autotest/autotest/issues/911/events","html_url":"https://github.com/autotest/autotest/issues/911","id":58934123,"number":911,"title":"Can't plot a Metrics plot","user":{"login":"Stan-He","id":7049018,"avatar_url":"https://avatars.githubusercontent.com/u/7049018?v=3","gravatar_id":"","url":"https://api.github.com/users/Stan-He","html_url":"https://github.com/Stan-He","followers_url":"https://api.github.com/users/Stan-He/followers","following_url":"https://api.github.com/users/Stan-He/following{/other_user}","gists_url":"https://api.github.com/users/Stan-He/gists{/gist_id}","starred_url":"https://api.github.com/users/Stan-He/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stan-He/subscriptions","organizations_url":"https://api.github.com/users/Stan-He/orgs","repos_url":"https://api.github.com/users/Stan-He/repos","events_url":"https://api.github.com/users/Stan-He/events{/privacy}","received_events_url":"https://api.github.com/users/Stan-He/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T17:03:11Z","updated_at":"2015-02-25T17:03:11Z","closed_at":null,"body":"Hi, everyone\r\nThis is the first time I post a issue, when I am trying to plot a metrics graph on tko-graphing(web-site), I always get the error log below, I'am using python2.7.5+django1.5.11\r\n------------------------------------------------------------------------------------------------------------\r\nTypeError: integer argument expected, got float\r\nTraceback (most recent call last):\r\n  File \"/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py\", line 100, in dispatchRequest\r\n    results['result'] = self.invokeServiceEndpoint(meth, args)\r\n  File \"/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py\", line 135, in invokeServiceEndpoint\r\n    def invokeServiceEndpoint(self, meth, args):\r\n  File \"/usr/local/autotest/frontend/afe/rpc_handler.py\", line 114, in new_fn\r\n    return f(*args, **keyword_args)\r\n  File \"/usr/local/autotest/frontend/tko/rpc_interface.py\", line 255, in create_metrics_plot\r\n    queries, plot, invert, normalize, drilldown_callback=drilldown_callback)\r\n  File \"/usr/local/autotest/frontend/tko/graphing_utils.py\", line 646, in create_metrics_plot\r\n  File \"/usr/local/autotest/frontend/tko/graphing_utils.py\", line 474, in _create_image_html\r\n  File \"/usr/local/autotest/frontend/tko/graphing_utils.py\", line 448, in _create_png\r\n    image_background = PIL.Image.new(image.mode, image.size,\r\n  File \"/usr/lib64/python2.7/site-packages/PIL/Image.py\", line 1844, in fromstring\r\n    return frombytes(*args, **kw)\r\n  File \"/usr/lib64/python2.7/site-packages/PIL/Image.py\", line 1833, in frombytes\r\n    im = new(mode, size)\r\n  File \"/usr/lib64/python2.7/site-packages/PIL/Image.py\", line 1800, in new\r\n    return Image()._new(core.fill(mode, size, color))\r\nTypeError: integer argument expected, got float"}}