[Reportbug-maint] Bug#578505: reportbug: raises "NameError: global name 'timeout' is not defined" when selecting bug from filtered list

Matt Kraai kraai at ftbfs.org
Tue Apr 20 12:22:38 UTC 2010


Package: reportbug
Version: 4.12
Severity: normal
Tags: patch

Hi,

When I try to report a bug in a package, press "f" and enter a filter
term, and then enter the number of a bug report, reportbug raises the
following exception:

 NameError: global name 'timeout' is not defined

Here's a transcript of such a session:

> $ reportbug rhythmbox
> Detected character set: UTF-8
> Please change your locale if this is incorrect.
> 
> Using 'Matt Kraai <kraai at ftbfs.org>' as your from address.
> Getting status for rhythmbox...
> Checking for newer versions at packages.debian.org...
> Will send report to Debian (per lsb_release).
> Querying Debian BTS for reports on rhythmbox (source)...
> 140 bug reports found:
> 
> Outstanding bugs -- Important bugs; Unclassified (4 bugs)
>     1) #492840  rhythmbox: fails to play songs from iPod
>     2) #532651  rhythmbox: Case sensitivity breaks playing iPod files
>     3) #548961  rhythmbox shows its window and segfault immediately
>     4) #560169  rhythmbox crashes when reading from NFS volumes
> 
> Outstanding bugs -- Important bugs; More information needed (1 bug)
>     5) #544979  rhythmbox: hangs when playing audio file and streaming
> 
> Outstanding bugs -- Normal bugs; Patch Available (1 bug)
>     6) #564641  rhythmbox: Cannot detect remote upnp server (mediatomb)
> 
> Outstanding bugs -- Normal bugs; Unclassified (34 bugs)
>     7) #431396  rhythmbox-dbg: does not produce useful backtraces
>     8) #479428  rhythmbox: please reduce the number of dependencies by avoiding linking to some lib
>     9) #485838  rhythmbox: error message shown when activating "DLNA/UPnP sharing and control suppo
>    10) #495772  rhythmbox proxy support calls mb_SetProxyCreds() which doesn't exist
>    11) #498272  rhythmbox: SHOUTcast radio streams with multiple sources show up as multiple items
>    12) #501962  rhythmbox hangs when play against invalid music file
>    13) #504448  rhythmbox: keeps playing after deleting tracks from the play queue
>    14) #505537  rhythmbox: inhibits suspend when not playing
>    15) #509124  rhythmbox: cover.jpg files not loaded
>    16) #509673  rhythmbox: Double click on the tracks (lower window)
>    17) #511484  rhythmbox: Can't copy flac with 24bit/96kHz to player
>    18) #528799  [rhythmbox] Cannot add track with comma in name or path to the play list
>    19) #530933  rhythmbox: progressbar doesn't work during playback
>    20) #531463  [rhythmbox] Rhythmbox tries to parse .url as media file and complains about missing
>    21) #532232  rhythmbox SIGSEV on MTP device insertion
>    22) #532397  rhythmbox can't play cds by default
>    23) #533728  rhythmbox: Manual inaccuracies
>    24) #537944  rhythmbox: segfaults in js_GC()
>    25) #538120  Rhythmbox "proxy authentication required" message
>    26) #547583  rhythmbox - find only about half tracks of CD audio
>    27) #550485  Does not change volume level before playing
>    28) #552985  rhythmbox: Playback problems when Crossfade duration enabled
>    29) #553227  rhythmbox: Can't add remote songs to playlists
>    30) #554391  rhythmbox: Podcast-Feed update fails without reason
>    31) #556233  regression: no longer updates ipod playlists
>    32) #558343  rhythmbox: Disabling ipv6 causes annoying delay when playing
>    33) #558666  rhythmbox: Unable to start playback pipeline
>    34) #561833  rhythmbox: IM Status shows previously played song when paused
>    35) #564642  rhythmbox ships a copy of sources from coherence source package (upnp plugin)
>    36) #566624  rhythmbox: can't edit metadata on AAC files
>    37) #566750  rhythmbox: Podcasts with dates before 1/1/1970 come after today's date
>    38) #568754  rhythmbox: Pauses when minimizing all windows ('show desktop')
>    39) #570393  Fails to download podcast episode
>    40) #571439  rhythmbox: DAAP music lacks basic features
> 
> Outstanding bugs -- Normal bugs; More information needed (1 bug)
>    41) #520016  rhythmbox: segfault and Could not get owner of name 'org.gnome.SettingsDaemon': no
> 
> Outstanding bugs -- Normal bugs; Will Not Fix (1 bug)
>    42) #355239  rhythmbox: Please lower avahi-daemon to Suggests:
> 
> Outstanding bugs -- Minor bugs; Unclassified (2 bugs)
>    43) #487520  [rhythmbox] GLib-GObject-CRITICAL when changing the user-interface-theme
>    44) #512107  rhythmbox: Duplicate items in library due to case insensitive filesystem (VFAT)
> (1-44/140) Is the bug you found listed above [y|N|b|m|r|q|s|f|?]? f
> Enter the search pattern (a Perl-compatible regular expression)
> or press ENTER to exit: podcast
>  Outstanding bugs -- Normal bugs; Unclassified (34 bugs): 3 reports
>   1) #554391  rhythmbox: Podcast-Feed update fails without reason
>   2) #566750  rhythmbox: Podcasts with dates before 1/1/1970 come after today's date
>   3) #570393  Fails to download podcast episode
> 
>  Outstanding bugs -- Wishlist items; Unclassified (7 bugs): 2 reports
>   4) #535427  Broken podcast feed causes episode to reappear
>   5) #561205  Download podcast episodes in parallel
> 
>  Forwarded bugs -- Normal bugs (30 bugs): 1 report
>   6) #507982  rhythmbox : podcasts files : mtime is 01/01/1970
> (1-6/6) Is the bug you found listed above [y|N|b|m|r|q|s|f|u|t|?]? 4
> Traceback (most recent call last):
>   File "/usr/bin/reportbug", line 2082, in <module>
>     main()
>   File "/usr/bin/reportbug", line 1034, in main
>     return iface.user_interface()
>   File "/usr/bin/reportbug", line 1616, in user_interface
>     version=pkgversion)
>   File "/usr/lib/pymodules/python2.5/reportbug/ui/text_ui.py", line 577, in handle_bts_query
>     mirrors, http_proxy, timeout, screen, title, package)
>   File "/usr/lib/pymodules/python2.5/reportbug/ui/text_ui.py", line 702, in browse_bugs
>     http_proxy, screen, title, package)
>   File "/usr/lib/pymodules/python2.5/reportbug/ui/text_ui.py", line 937, in search_bugs
>     http_proxy, timeout,
> NameError: global name 'timeout' is not defined

The attached patch fixes this problem by adding a timeout parameter to
search_bugs and ensuring that when search_bugs is called, the timeout
parameter is passed to it.

-- Package-specific info:
** Environment settings:
VISUAL="emacs"

** /home/kraai/.reportbugrc:
no-cc

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-4-686 (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.7.25.3   Advanced front-end for dpkg
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-reportbug              4.12       Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils        <none>              (no description available)
pn  debsums              <none>              (no description available)
ii  dlocate              1.02                fast alternative to dpkg -L and dp
pn  emacs22-bin-common | <none>              (no description available)
ii  exim4                4.71-4              metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [ 4.71-4              lightweight Exim MTA (v4) daemon
ii  file                 5.04-2              Determines file type using "magic"
ii  gnupg                1.4.10-3            GNU privacy guard - a free PGP rep
ii  python-gtk2          2.17.0-2            Python bindings for the GTK+ widge
pn  python-gtkspell      <none>              (no description available)
pn  python-urwid         <none>              (no description available)
ii  python-vte           1:0.24.0-2          Python bindings for the VTE widget
ii  xdg-utils            1.0.2+cvs20100307-1 desktop integration utilities from

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-timeout-parameter-to-search_bugs.patch
Type: text/x-diff
Size: 1252 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20100420/51040bca/attachment.patch>


More information about the Reportbug-maint mailing list