[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#904391: reportbug: crash with AttributeError: module 'reportbug.ui.urwid_ui' has no attribute 'spawn_editor'



Package: reportbug
Version: 7.1.7+deb9u2
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

I tried to report a bug on Debian Sid

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. Run "reportbug -u urwid"
2. Type "reportbug" as the package
3. Select "New bug"
4. Select "OK"
5. Type something in to the input field and select "OK"
6. Select "Normal" and "OK"
7. Select "OK"

   * What was the outcome of this action?

reportbug crashes with:
Gathering additional data, this may take a while...
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2266, in <module>
    main()
  File "/usr/bin/reportbug", line 1109, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 2182, in user_interface
    package, severity, mode, charset=charset, tags=tags)
  File "/usr/bin/reportbug", line 181, in handle_editing
    (message, changed) = ui.spawn_editor(message or dmessage, filename,
AttributeError: module 'reportbug.ui.urwid_ui' has no attribute 'spawn_editor'

   * What outcome did you expect instead?

It shouldn't crash.


Another way how to crash reportbug:
1. Modify the file /etc/ssh/ssh_config
2. Run reportbug -u urwid
3. Type "openssh-client" as the package
4. Select "New bug"
5. Select "Display modified configuration files"

you'll get this crash:
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2266, in <module>
    main()
  File "/usr/bin/reportbug", line 1109, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1831, in user_interface
    ui.system(PAGER + ' ' + ' '.join(changed))
AttributeError: module 'reportbug.ui.urwid_ui' has no attribute 'system'



Note - I'm reporting this bug from Debian Stretch, because reportbug on
Debian Sid is unuseable. But the bug happenes on Sid, reportbug works
correcly on Stretch.

*** End of the template - remove these template lines ***


-- Package-specific info:
** Environment settings:
INTERFACE="urwid"

** /home/mikulas/.reportbugrc:
reportbug_version "7.1.7"
mode standard
ui urwid

-- System Information:
Debian Release: 9.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: arm64 (aarch64)
Foreign Architectures: armel, armhf

Kernel: Linux 4.17.4 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), LANGUAGE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages reportbug depends on:
ii  apt                1.4.8
ii  python3            3.5.3-1
ii  python3-reportbug  7.1.7+deb9u2

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
pn  debconf-utils                              <none>
pn  debsums                                    <none>
pn  dlocate                                    <none>
pn  emacs24-bin-common | emacs25-bin-common    <none>
ii  exim4                                      4.89-2+deb9u3
ii  exim4-daemon-light [mail-transport-agent]  4.89-2+deb9u3
ii  file                                       1:5.30-1+deb9u2
ii  gir1.2-gtk-3.0                             3.22.11-1
ii  gir1.2-vte-2.91                            0.46.1-1
ii  gnupg                                      2.1.18-8~deb9u2
ii  python3-gi                                 3.22.0-2
pn  python3-gi-cairo                           <none>
pn  python3-gtkspellcheck                      <none>
ii  python3-urwid                              1.3.1-2+b1
ii  xdg-utils                                  1.1.1-1+deb9u1

Versions of packages python3-reportbug depends on:
ii  apt                1.4.8
ii  file               1:5.30-1+deb9u2
ii  python3            3.5.3-1
ii  python3-apt        1.4.0~beta3
ii  python3-debian     0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1

python3-reportbug suggests no packages.

-- no debconf information


Reply to: