Thanks for this report. The fix, or rather workaround, is on the
trunk at rev 5036.
Apparently, this is a distribution bug on Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/123755
pstats is part of the standard distribution, so importing pstats
should never fail.
The workaround was simply to move imports of pstats away from the
module level. Leo now issues an informative message about this bug if
the import fails. This will happen only if the user is actually
running profiling code, which would happen rarely.
All usual tests pass, but I haven't actually tested the failure condition.
Edward