redex icon indicating copy to clipboard operation
redex copied to clipboard

NameError: name 'reduce' is not defined (dump_classes_from_hprof.py)

Open byronwind opened this issue 10 years ago • 1 comments

python3 redex/tools/hprof/dump_classes_from_hprof.py --hprof my.hprof > list_of_classes.txt

Traceback (most recent call last): File "./tools/hprof/dump_classes_from_hprof.py", line 1262, in hp = parse_filename(args.hprof) File "./tools/hprof/dump_classes_from_hprof.py", line 54, in parse_filename return parse_hprof_dump(open(filename, 'rb')) File "./tools/hprof/dump_classes_from_hprof.py", line 31, in parse_hprof_dump tag = reduce(operator.concat, iter_until_null, '') NameError: name 'reduce' is not defined

byronwind avatar Apr 15 '16 11:04 byronwind

Use python 2.7 to run the dump script. We're working on fixing this, but it's extracted from a code base that is all python 2.*

onomatopoeia avatar Apr 15 '16 18:04 onomatopoeia