pstats module missing in python 2.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Matthias Klose | ||
Bug Description
Binary package hint: python
python2.5
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pstats
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pstats
naufraghi@rosen:~$ python2.4
Python 2.4.4 (#2, Apr 26 2007, 00:02:45)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pstats
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named pstats
http://
-----------
When you wish to review the profile, you should use the methods in the pstats module. Typically you would load the statistics data as follows:
import pstats
p = pstats.
Changed in python-defaults (Ubuntu): | |
status: | Invalid → Opinion |
Not a bug: pstats.py is in python-profiler
but...
python-profiler is perhaps a missing dep of python-all or at least of python-all-dev