Bug#966480: reportbug: Python 3.8: string argument expected, got bytes
Package: reportbug
Version: 7.7.0
Severity: important
Dear Maintainer,
composing a report with a file attached led to
Submit this report on claws-mail (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|?]?
Traceback (most recent call last):
File "/usr/bin/reportbug", line 2302, in <module>
main()
File "/usr/bin/reportbug", line 1107, in main
return iface.user_interface()
File "/usr/bin/reportbug", line 2286, in user_interface
submit.send_report(
File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 227, in send_report
(message, failed) = mime_attach(body, attachments, charset, body_charset)
File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 179, in mime_attach
part = MIMEMessage(email.message_from_file(fp),
File "/usr/lib/python3.8/email/__init__.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "/usr/lib/python3.8/email/parser.py", line 56, in parse
feedparser.feed(data)
File "/usr/lib/python3.8/email/feedparser.py", line 175, in feed
self._input.push(data)
File "/usr/lib/python3.8/email/feedparser.py", line 103, in push
self._partial.write(data)
TypeError: string argument expected, got 'bytes'
-- Package-specific info:
** Environment settings:
DEBEMAIL="Mathias Behrle <mathiasb@m9s.biz>"
INTERFACE="text"
** /home/mathiasb/.reportbugrc:
reportbug_version "3.8"
mode standard
ui text
realname "Mathias Behrle"
email "mbehrle@debian.org"
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (800, 'testing'), (700, 'unstable'), (600, 'experimental'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.7.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages reportbug depends on:
ii apt 2.1.7
ii python3 3.8.2-3
ii python3-reportbug 7.7.0
ii sensible-utils 0.0.12+nmu1
reportbug recommends no packages.
Versions of packages reportbug suggests:
ii claws-mail 3.17.6-1
pn debconf-utils <none>
ii debsums 3.0.0
pn dlocate <none>
pn emacs-bin-common <none>
ii exim4 4.94-6
ii exim4-daemon-light [mail-transport-agent] 4.94-6
ii file 1:5.38-5
ii gnupg 2.2.20-1
pn python3-urwid <none>
pn reportbug-gtk <none>
ii xdg-utils 1.1.3-2
Versions of packages python3-reportbug depends on:
ii apt 2.1.7
ii file 1:5.38-5
ii python3 3.8.2-3
ii python3-apt 2.1.3
ii python3-debian 0.1.37
ii python3-debianbts 3.0.2
ii python3-requests 2.23.0+dfsg-2
ii sensible-utils 0.0.12+nmu1
python3-reportbug suggests no packages.
-- no debconf information
Reply to: