boobis
October 18th, 2005, 06:31 PM
I'm trying to use the hotshot python profiler, but it fails, complaining that:
>>> import hotshot
>>> import hotshot.stats
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/hotshot/stats.py", line 3, in ?
import profile
ImportError: No module named profile
>>>
I've seen this error around, but no working solution. The profile module is indeed missing and the python-profiler set of packages are not installable ...
What to do?
>>> import hotshot
>>> import hotshot.stats
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/hotshot/stats.py", line 3, in ?
import profile
ImportError: No module named profile
>>>
I've seen this error around, but no working solution. The profile module is indeed missing and the python-profiler set of packages are not installable ...
What to do?