Bug#903969: reportbug: Reportbug with Urwid crashes when opening text editor
Package: reportbug
Version: 7.5.0
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
When using the most recent Reportbug with Urwid, it crashes when attempting
to open a text editor like this.
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'
I think this is probably related to the changes in #867337, since GitLab shows
that the commit made this change to urwid_ui.py and removed a couple lines.
from .text_ui import (
ewrite,
- spawn_editor,
- system
)
Adding the spawn_editor line back in makes it work again.
- -- Package-specific info:
** Environment settings:
INTERFACE="gtk2"
** /home/john/.reportbugrc:
mode advanced
ui urwid
verify
sign gpg
keyid 27008CC5D05F1B6E18DADAEF7D6144A627793072
paranoid
realname "John Scott"
email "jscott@posteo.net"
smtphost posteo.de:587
smtpuser jscott@posteo.net
smtptls
- -- System Information:
Debian Release: buster/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.16.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages reportbug depends on:
ii apt 1.6.3
ii python3 3.6.5-3
ii python3-reportbug 7.5.0
ii sensible-utils 0.0.12
reportbug recommends no packages.
Versions of packages reportbug suggests:
pn claws-mail <none>
pn debconf-utils <none>
ii debsums 2.2.2
ii dlocate 1.07+nmu1
ii emacs25-bin-common 25.2+1-6+b2
ii exim4-daemon-light [mail-transport-agent] 4.91-5
ii file 1:5.33-3
ii gnupg 2.2.8-3
ii python3-urwid 2.0.1-2+b1
ii reportbug-gtk 7.5.0
ii xdg-utils 1.1.3-1
Versions of packages python3-reportbug depends on:
ii apt 1.6.3
ii file 1:5.33-3
ii python3 3.6.5-3
ii python3-apt 1.6.2
ii python3-debian 0.1.32
ii python3-debianbts 2.7.2
ii python3-requests 2.18.4-2
python3-reportbug suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEJwCMxdBfG24Y2trvfWFEpid5MHIFAltOCTkACgkQfWFEpid5
MHKCIAf+Mf8sqZiHfjhHoab/FkdVBwqcbfzhuFOj2HB3fCzpXRok9inGKUzIqER7
446pNfVUCCu0ga/tdNiPdldRvnGfqt/eM7C36FuALxxMKFLXo0Yk8ogBXL1O7qSK
mdyhw9VH9GWlyVKNpZepzhDrWR0+sCobyRhTa4EmNnG/G3yPjrUZuTSXfRGq3g8e
sYbFoiJ9mGxE1rZATzoLQkZgeI8tSFwqW2gZH/8zT7i2yjcF6QqCafebn3OI0g1n
wX4prbXSHz+YcnP1qlKm7KyEH/ZQ1tN4PTIRZ4C0U3pY5kxOd4IwDva4EZhaEpd9
lk4RFCcHJsq+3c//zXIQALeBxolLdQ==
=bXkS
-----END PGP SIGNATURE-----
Reply to: