469,353 Members | 2,163 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

hotshot load error

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('ScanHot.prof', lineevents=1)
though it runs all right, when I try to load the resulting file I get
this:
hs = hotshot.stats.load("ScanHot.prof")

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/hotshot/stats.py", line 12, in load
return StatsLoader(filename).load()
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/hotshot/stats.py", line 51, in load
assert not self._stack
AssertionError

--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
http://cherry.conncoll.edu/cohar
http://villex.blogspot.com

Jul 18 '05 #1
0 1240

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by KefX | last post: by
reply views Thread by Rodrigo Daunaravicius | last post: by
reply views Thread by Charles Hartman | last post: by
1 post views Thread by Geert Jansen | last post: by
reply views Thread by Brian Cole | last post: by
reply views Thread by Lars Woetmann | last post: by
1 post views Thread by Yang | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.