Public bug reported:

Binary package hint: python2.5

Clarification:

   When trying to use the cProfile package and invoking the run method
the pstat package required is not found

Verification, try the following python code

      import cProfile

      def test():
            pass

       cProfile.run('test()')

We got the error:

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

pstats is not found under /usr/lib/python2.5/

it needs to be provided with cProfile.

** Affects: python2.5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Missed pstat package
https://bugs.launchpad.net/bugs/306909
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to