Comment 4 for bug 123755

Revision history for this message
Tim D (humbletim) wrote : Re: pstats module missing in python 2.4 and 2.5

I also think this qualifies as a distro bug because the profiling modules (hotshot, profile, pstats, etc.) are only ever described as part of the Python Standard Library. All tutorials I've been trying lately (found through Googling) present these modules as out-of-the-box Python components -- I was surprised to have to install additional packages to get a "real" Python environment.

I guess profiling is an advanced topic and users hitting this roadblock will likely figure it out, but how about at least making the error message specify that it's a missing Ubuntu package (and not a Python easy_install, egg, etc.):

current: <type 'exceptions.ImportError'>: No module named profile; please install the python-profiler package
suggestion: <type 'exceptions.ImportError'>: No module named profile; please install Ubuntu's python-profiler package (for example: sudo apt-get install python-profiler)

Best regards, -Tim / 8.04