Package: python-coverage
Version: 2.80-1
Severity: normal

If the profiled python script uses any .py files under
/usr/lib/python$VER/, the command "python-coverage -a" tries to write
in that directory (and if run as root, probably would succeed):

------------------------------------------------------------
$ python-coverage -a
Traceback (most recent call last):
  File "/usr/bin/python-coverage", line 8, in <module>
    load_entry_point('coverage==2.80', 'console_scripts', 'coverage')()
  File "/usr/lib/python2.5/site-packages/coverage.py", line 976, in main
    the_coverage.command_line(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/coverage.py", line 415, in command_line
    self.annotate(args, directory, ignore_errors, omit_prefixes=omit)
  File "/usr/lib/python2.5/site-packages/coverage.py", line 872, in annotate
    self.annotate_file(filename, statements, excluded, missing, directory)
  File "/usr/lib/python2.5/site-packages/coverage.py", line 887, in 
annotate_file
    dest = open(dest_file, 'w')
IOError: [Errno 13] Permission denied: '/usr/lib/python2.5/os.py,cover'
------------------------------------------------------------

        Sami


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.2 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-coverage depends on:
ii  python                        2.5.2-2    An interactive high-level object-o
ii  python-central                0.6.8      register and build utility for Pyt

python-coverage recommends no packages.

python-coverage suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to