Package: reserialize Version: 20220929-2 Severity: normal Dear Maintainer,
The command echo '{}' | json2bson | bson2json fails with: > Traceback (most recent call last): > File "/usr/bin/bson2json", line 84, in <module> > data = fh_loaders[itype](ifh) > ^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/bin/bson2json", line 24, in <lambda> > "bson": lambda fh: next(bson.decode_file_iter(fh)), > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3/dist-packages/bson/__init__.py", line 1159, in > decode_file_iter > obj_size = _UNPACK_INT_FROM(size_data, 0)[0] - 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > TypeError: a bytes-like object is required, not 'str' Cheers, -- Stéphane -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'buildd-unstable'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.5.0-3-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages reserialize depends on: ii python3 3.11.4-5+b1 ii python3-yaml 6.0.1-1 Versions of packages reserialize recommends: ii python3-bson 3.11.0-1+b5 pn python3-toml <none> reserialize suggests no packages. -- no debconf information