[New-bugs-announce] [issue7984] missing dependencies using cProfile

Mezhenin Artyom report at bugs.python.org
Mon Feb 22 15:55:06 CET 2010


New submission from Mezhenin Artyom <a.mezhenin at gmail.com>:

1) I have ubuntu 9.10 and python2.6 (and 2.5 too).
2) execution code like that:

  if __name__ == "__main__":
      import cProfile
      cProfile.run('main()')

gives me traceback:

Traceback (most recent call last):
  File "./scribo.py", line 60, in <module>
    cProfile.run('main()')
  File "/usr/lib/python2.6/cProfile.py", line 36, in run
    result = prof.print_stats(sort)
  File "/usr/lib/python2.6/cProfile.py", line 80, in print_stats
    import pstats
ImportError: No module named pstats

so I had to install python-profiler package manually

----------
components: None
messages: 99739
nosy: artech
severity: normal
status: open
title: missing dependencies using cProfile
type: crash
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7984>
_______________________________________


More information about the New-bugs-announce mailing list