Package: reportbug Version: 3.42 Severity: important Tags: patch Hi. I am new to python and the debian policy regarding how to handle them though I found a workaround to get debreaper working again. It was failing Traceback (most recent call last): File "/usr/share/debreaper/debreaper", line 70, in <module> report = generate_report (status[1], status[0], status[2], status[3], path, gdbout) File "/usr/share/debreaper/bug_iface.py", line 27, in generate_report return reportbug.generate_blank_report (package, pkgversion, 'important', None, depinfo, '', path, body="*** Please describe what you were doing when the application crashed ***\n\n"+gdbout) File "/usr/share/reportbug/reportbuglib/reportbug.py", line 721, in generate_blank_report if debianbts.SYSTEMS[system].has_key('namefmt'): AttributeError: 'module' object has no attribute 'SYSTEMS'
due to python-debianbts (dependency of reportbug-ng) tyaking precedance in the import search path in /usr/share/reportbug/reportbuglib/reportbug.py This patch works around it by adding /usr/share/reportbug/reportbuglib first in the import search path. Best regards Alban -- Package-specific info: ** /home/prahal/.reportbugrc: reportbug_version "3.29.5" mode standard realname "Alban Browaeys" email "[EMAIL PROTECTED]" no-cc header "X-Debbugs-CC: [EMAIL PROTECTED]" -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.25-rc7-00025-gacaef06-dirty (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages reportbug depends on: ii apt 0.7.14+b1 Advanced front-end for dpkg ii python 2.5.2-1 An interactive high-level object-o ii python-central 0.6.8 register and build utility for Pyt reportbug recommends no packages. -- no debconf information
--- reportbug.py.orig 2008-07-17 19:20:10.000000000 +0200 +++ reportbug.py 2008-07-17 19:19:54.000000000 +0200 @@ -40,6 +40,7 @@ import subprocess import imp +sys.path.insert(0,"/usr/share/reportbug/reportbuglib") import debianbts # Paths for dpkg