Export to GitHub

pympler - issue #48

Tracker graph does not display -- solution


Posted on Jan 31, 2013 by Massive Hippo

What steps will reproduce the problem?

python import pympler.web, pympler.classtracker.ClassTracker tracker = pympler.classtracker.ClassTracker() tracker.start_periodic_snapshots(interval=1) pympler.web.start_in_background(tracker=tracker) Now browse to localhost:8090

What is the expected output? What do you see instead? The javascript graph does not appear because of a javascript error. The problem is cause by python's string formatting of large numbers in lists to have an 'L' after them -- which is not understood by javascript.

What version of the product are you using? On what operating system? python 2.7

Please provide any additional information below. This can be fixed with the following patch to tracker.tpl on line 71: - data: {{series}}, + data: {{str(series).replace('L', '')}},

Attachments

Comment #1

Posted on Feb 10, 2013 by Swift Bird

Hi Berhoyt,

I just committed a fix on GitHub: https://github.com/pympler/pympler/compare/fix_tracker

Does this also fix the problem?

Thanks for the bug report!

Comment #2

Posted on Feb 10, 2013 by Massive Hippo

Yes, that also fixes the problem, thank you.

Comment #3

Posted on Feb 16, 2013 by Swift Bird

Fixed in Pympler 0.3.1

Status: Fixed

Labels:
Type-Defect Priority-Medium