By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

hotshot load error

P: n/a
I've used profile before, but wanted to get more information so I
thought I'd try hotshot instead. It works fine when used like profile.
But when I run it using this line,
prof = hotshot.Profile('', lineevents=1)
though it runs all right, when I try to load the resulting file I get
hs = hotshot.stats.load("")

Traceback (most recent call last):
File "<stdin>", line 1, in ?
python2.3/hotshot/", line 12, in load
return StatsLoader(filename).load()
python2.3/hotshot/", line 51, in load
assert not self._stack

--which I don't understand. (The program is a GUI one using wxPython
2.5, running from within the WingIDE on a Mac under OS 10.3.8, if any
of that makes a difference. Nothing there prevents hotshot from loading
a file that's been made without the lineevents=1 argument.)

Charles Hartman
Professor of English, Poet in Residence

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.