[Reportbug-maint] Bug#624563: reportbug: error when there are no reports (global name 'ui' is not defined)

Kan-Ru Chen koster at debian.org
Fri Apr 29 16:37:21 UTC 2011


Package: reportbug
Version: 5.1
Severity: important
Tags: patch

$ reportbug opencc

*** Welcome to reportbug.  Use ? for help at prompts. ***
Note: bug reports are publicly archived (including the email address
of the submitter).
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using '"Kan-Ru Chen" <koster at debian.org>' as your from address.
Getting status for opencc...
Verifying package integrity...
Checking for newer versions at packages.debian.org,
incoming.debian.org and http://ftp-master.debian.org/new.html
Will send report to Debian (per lsb_release).
Querying Debian BTS for reports on opencc (source)...
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2151, in <module>
    main()
  File "/usr/bin/reportbug", line 1072, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1669, in user_interface
    self.options.mbox_reader_cmd)
  File "/usr/lib/pymodules/python2.6/reportbug/ui/text_ui.py", line
  534, in handle_bts_query
    ui.run_wrapper(nullfunc)
NameError: global name 'ui' is not defined


Cheers,
Kanru

-- Package-specific info:
** Environment settings:
EDITOR="emacsclient -nw"
DEBEMAIL="koster at debian.org"
EMAIL="kanru at kanru.info"
DEBFULLNAME="Kan-Ru Chen"
INTERFACE="text"

** /home/kanru/.reportbugrc:
reportbug_version "4.10.2"
mode expert
ui text
realname "Kan-Ru Chen"
email "koster at debian.org"

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

Kernel: Linux 2.6.38-1-amd64 (SMP w/2 CPU cores)
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 reportbug depends on:
ii  apt                           0.8.14.1   Advanced front-end for dpkg
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python-reportbug              5.1        Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                <none>      (no description available)
ii  debsums                      2.0.48+nmu3 tool for verification of installed
ii  dlocate                      1.02        fast alternative to dpkg -L and dp
pn  emacs22-bin-common | emacs23 <none>      (no description available)
ii  exim4-daemon-light [mail-tra 4.75-2      lightweight Exim MTA (v4) daemon
ii  file                         5.04-5+b1   Determines file type using "magic"
ii  gnupg                        1.4.11-3    GNU privacy guard - a free PGP rep
ii  python-gtk2                  2.24.0-1    Python bindings for the GTK+ widge
pn  python-gtkspell              <none>      (no description available)
pn  python-urwid                 <none>      (no description available)
pn  python-vte                   <none>      (no description available)
ii  xdg-utils                    1.1.0~rc1-2 desktop integration utilities from

-- no debconf information
-------------- next part --------------
--- text_ui.py	2011-04-30 00:35:13.000000000 +0800
+++ text_ui.py~	2011-04-30 00:35:23.000000000 +0800
@@ -531,7 +531,6 @@ def handle_bts_query(package, bts, timeo
 
         # If there's no report, then skip all the rest
         if not count:
-            ui.run_wrapper(nullfunc)
             if hierarchy == None:
                 raise NoPackage
             else:


More information about the Reportbug-maint mailing list