No Module Named pstats
I. Soumpasis
nono.231 at gmail.com
Wed Feb 13 04:49:12 EST 2008
2008/2/13, Juha S. <sj.m at iloinen.net>:
>
> Hi,
>
> I'm trying to use the Python profilers to test my code, but I get the
> following output for cProfile.run() at the interpreter:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.5/cProfile.py", line 36, in run
> result = prof.print_stats(sort)
> File "/usr/lib/python2.5/cProfile.py", line 80, in print_stats
> import pstats
> ImportError: No module named pstats
>
>
> I also tried to use the profile module but I get:
>
> >>> import profile
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named profile
>
>
> I'm on Ubuntu 7.10 with Python 2.5, and I can't seem to figure out
> what's missing.
I think you have to install python-profiler.
Regards,
Ilias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080213/a3945538/attachment-0001.html>
More information about the Python-list
mailing list