Issue #2 open

TypeError: 'int' object is unsubscriptable

Anonymous created an issue

Version 1.1.0 does not seem to work as intended: {{{ $ cat print "foo" $ python2.5 -m profile -o foo $ pyprof2calltree -i -o dump.calltree writing converted data to: dump.calltree Traceback (most recent call last): File "/usr/local/bin/pyprof2calltree", line 8, in <module> load_entry_point('pyprof2calltree==1.1.0', 'console_scripts', 'pyprof2calltree')() File ".../pyprof2calltree-1.1.0-py2.5.egg/", line 240, in main kg.output(file(outfile, 'wb')) File ".../pyprof2calltree-1.1.0-py2.5.egg/", line 106, in output self._entry(entry) File ".../pyprof2calltree-1.1.0-py2.5.egg/", line 167, in _entry self._subentry(lineno, subentry, call_info) File ".../pyprof2calltree-1.1.0-py2.5.egg/", line 178, in _subentry print >> out_file, 'calls=%d %d' % (call_info[0], co_firstlineno) TypeError: 'int' object is unsubscriptable }}}

Easy-installed, Python2.5 on Debian Etch.

Comments (2)

  1. Anonymous

    Sorry for the noise, I should have used cProfile instead of profile. Works with cProfile.

    But perhaps it would be useful to detect if profile was used, and print a more helpful error message?

  2. Log in to comment