Bug#979984: breaks on check with "NameError: name 'get_binary_stdin' is not defined"

2021-01-15 Thread Timo van Roermund

This bug was fixed in version 1:1.0.0-6.

Cheers,

Timo



Bug#979984: breaks on check with "NameError: name 'get_binary_stdin' is not defined"

2021-01-12 Thread Sven Hartge
Package: pyzor
Version: 1:1.0.0-5
Severity: grave

Hi!

The fix for https://bugs.debian.org/923077 seems to have introduced a
serious regressing, causing pyzor to stop working on check:

~$ pyzor check < testmail
Traceback (most recent call last):
  File "/usr/bin/pyzor", line 411, in 
main()
  File "/usr/bin/pyzor", line 152, in main
if not dispatch(client, servers, config):
  File "/usr/bin/pyzor", line 240, in check
for digested in get_input_handler(style):
  File "/usr/bin/pyzor", line 177, in _get_input_msg
msg = email.message_from_bytes(get_binary_stdin().read())
NameError: name 'get_binary_stdin' is not defined

The fix from
https://github.com/SpamExperts/pyzor/commit/6332a429ed415187599ecce7d8a169ee19f0bbe5
is not enough, as the code from
https://github.com/SpamExperts/pyzor/commit/67b471dd168db9468548aef3ffadca9554164ac0
implementing this function is needed for it to work.

Gentoo carries the same fix at
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=300f46c1c52cc79238e88dba28241a6e78525966

Grüße,
Sven.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (200, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, 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 pyzor depends on:
ii  python3  3.9.1-1

pyzor recommends no packages.

Versions of packages pyzor suggests:
pn  pyzor-doc  

-- debconf-show failed