This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JoelSchaerer
Recipients JoelSchaerer
Date 2007-10-23.10:31:25
SpamBayes Score 0.022592368
Marked as misclassified No
Message-id <1193135485.77.0.648443887061.issue1315@psf.upfronthosting.co.za>
In-reply-to
Content
The following command:

python -c "import
pstats;s=pstats.Stats('profile.pck');s.strip_dirs();s.print_callers(25)"

Crashes with the following traceback:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/pstats.py", line 388, in print_callers
    self.print_call_line(width, func, callers, "<-")
  File "/usr/lib/python2.5/pstats.py", line 417, in print_call_line
    nc, cc, tt, ct = value
ValueError: too many values to unpack

when called with the attached profile.pck file, which was generated with
cProfile.

The interesting thing is that is I remove strip_dirs, it works.
Files
File name Uploaded
profile.pck JoelSchaerer, 2007-10-23.10:31:25
History
Date User Action Args
2007-10-23 10:31:26JoelSchaerersetspambayes_score: 0.0225924 -> 0.022592368
recipients: + JoelSchaerer
2007-10-23 10:31:25JoelSchaerersetspambayes_score: 0.0225924 -> 0.0225924
messageid: <1193135485.77.0.648443887061.issue1315@psf.upfronthosting.co.za>
2007-10-23 10:31:25JoelSchaererlinkissue1315 messages
2007-10-23 10:31:25JoelSchaerercreate