Michael Haubenwallner wrote:
Here is the patch that made it break:
+--- Lib/hotshot/stats.py~ 2001-10-15 22:18:53.000000000 +0000
++++ Lib/hotshot/stats.py 2006-04-21 18:39:17.691461512 +0000
+@@ -1,7 +1,14 @@
+ """Statistics analyzer for HotShot."""
+
+-import profile
+-import pstats
++try:
++ import profile
++ import pstats
++except ImportError, msg:
++ import sys
++ sys.stderr.write('ImportError: %s\n' % str(msg))
++ sys.stderr.write('please install the python%s-profiler package\n'
++ % sys.version[:3])
++ sys.exit(1)
+
+ import hotshot.log
Wow, that's pretty evil.
Who's the appropriate Ubuntu person to take this up with?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope3-dev mailing list
[email protected]
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com