[Reportbug-maint] Bug#607849: reportbug crashes due to incorrect os.uname call

Yaroslav Halchenko debian at onerussian.com
Wed Dec 22 23:17:31 UTC 2010


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


Ran into it on Debian system, and located that it was already reported in
Ubuntu as well:

https://bugs.launchpad.net/ubuntu/+source/reportbug/+bug/601264

thus kept subject the same.

ran into it while testing custom specification of the SYSTEM:

reportbug -d -b -B neurodebian -o /tmp/11 svgtune
...
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2098, in <module>
    main()
  File "/usr/bin/reportbug", line 1045, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1990, in user_interface
    issource=self.options.source)
  File "/usr/lib/pymodules/python2.6/reportbug/utils.py", line 746, in generate_blank_report
    return unicode(rep)
  File "/usr/lib/pymodules/python2.6/reportbug/bugreport.py", line 130, in __unicode__
    debinfo += infofunc()
  File "/usr/lib/pymodules/python2.6/reportbug/debianbts.py", line 589, in generic_infofunc
    utsmachine = os.uname(4)
TypeError: uname() takes no arguments (1 given)

indeed, original intent was probably getting architecture so patch is trivial, just use
os.uname()[4] instead

-- Package-specific info:
** Environment settings:
EDITOR="/usr/bin/vim"
VISUAL="/usr/bin/vim"
REPORTBUGEMAIL="debian at onerussian.com"
DEBEMAIL="debian at onerussian.com"
EMAIL="yoh at onerussian.com"
DEBFULLNAME="Yaroslav Halchenko"
INTERFACE="text"

** /home/yoh/.reportbugrc:
reportbug_version "3.17"
mode standard
ui text

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, 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.6            Advanced front-end for dpkg
ii  python                  2.6.6-3+squeeze1 interactive high-level object-orie
ii  python-reportbug        4.12.6           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
ii  emacs23-bin-common   23.2+1-4            The GNU Emacs editor's shared, arc
ii  file                 5.04-5              Determines file type using "magic"
ii  gnupg                1.4.10-4            GNU privacy guard - a free PGP rep
ii  msmtp-mta [mail-tran 1.4.21-1            light SMTP client with support for
ii  python-gtk2          2.17.0-4            Python bindings for the GTK+ widge
pn  python-gtkspell      <none>              (no description available)
ii  python-urwid         0.9.9.1-1           curses-based UI/widget library for
ii  python-vte           1:0.24.3-1          Python bindings for the VTE widget
ii  xdg-utils            1.0.2+cvs20100307-2 desktop integration utilities from

-- no debconf information





More information about the Reportbug-maint mailing list