Devuan bug report logs - #659
Reportbug does not run with non-utf8 encodings anymore

Package: python3-apt; Maintainer for python3-apt is (unknown); Source for python3-apt is src:python-apt.

Reported by: Klaus Ethgen <Klaus@ethgen.de>

Date: Sun, 30 Jan 2022 12:36:05 UTC

Severity: normal

Tags: debian

Merged with 679

Forwarded to https://bugs.debian.org/1003065

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#659: Reportbug does not run with non-utf8 encodings anymore
Reply-To: Klaus Ethgen <Klaus@ethgen.de>, 659@bugs.devuan.org
Resent-From: Klaus Ethgen <Klaus@ethgen.de>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: Mark Hindley <mark@hindley.org.uk>
X-Loop: owner@bugs.devuan.org
Resent-Date: Sun, 30 Jan 2022 12:36:05 +0000
Resent-Message-ID: <handler.659.B.16435460755300@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 659
X-Devuan-PR-Package: reportbug
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.16435460755300
          (code B); Sun, 30 Jan 2022 12:36:05 +0000
Received: (at submit) by bugs.devuan.org; 30 Jan 2022 12:34:35 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sun, 30 Jan 2022 12:34:35 +0000 (UTC)
Received: from tschil.ethgen.ch (tschil.ethgen.ch [5.9.7.51])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by mail.dyne.org (Postfix) with ESMTPS id 1AEB366134E
	for <submit@bugs.devuan.org>; Sun, 30 Jan 2022 09:39:16 +0100 (CET)
Authentication-Results: mail.dyne.org;
	dkim=pass (4096-bit key; unprotected) header.d=ethgen.de header.i=@ethgen.de header.b="uAglmgi+";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ethgen.de;
	 s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender:
	Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
	In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
	List-Post:List-Owner:List-Archive;
	bh=zR3SQFxiaN/cXmfZBgveoB86o/OC0Y4ed+4wUgbJ6to=; b=uAglmgi+3/Xv6cLzhew0ONnUck
	gKDAbpWvF+ddYPyqd/s1u4GdXOPDFTdRoJqmT39TCgcrZG4+02Y+erBU5SygyDGowW7rEWYVeRtl+
	vBuOS94DTiN8FxhGc9TE2JL+BXN+CxBC/w1otDMRoq5No0xcUj3XsDMv6HkVS7XDU/HJlP44js7Vr
	5Ws9+7YzWg0/jQK0/yJMgcR78yIFfBM8CrdICPePW0gNt9NbweYNdgAJms7/al1sFBaxoZzDfONNB
	LnlakMRaJ5sfcGfuMNbd+SV1MRWyP/Kf6oQ8YnLC0pSANL+Phr33TGR4WUy1yP45cuwJwdt4e72Lv
	6D6Jeiqm7NrqskvAbCwYqMYK2c+XHujopvyJWpjohSo8hbzci/T5I2w7j3ItbGX483cAC8LJZtF3y
	OJPkmFWtlqed0rQWswAFhOaHmuolnzopovBbQfIxJq5EUJ/igIDo3fgdVhF8mGXkO3q8C9umKwOH4
	BHXLDx1WZ1Yt+zWOk6S/lQ5WXbnR1f1+KQc4oTDXjWwSUFq6Q5suIqNHJBjxomMVg/kiQecA5H/zc
	QC5/xrrQA/ojMxlakdOV+LSrg1SjdSPDQMMekySLBHBheEZydzx+L+tABrEp6TORMShKgYYD7fu13
	qnu/9wGWH1CKUsTR0MvYwbjnc8G+ihHT7h6kqu3Ps=;
Received: from [192.168.17.4] (helo=ikki.ket)
	by tschil.ethgen.ch with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <Klaus@ethgen.de>)
	id 1nE5jq-00075f-LB; Sun, 30 Jan 2022 08:39:11 +0000
Received: from klaus by ikki.ket with local (Exim 4.95)
	(envelope-from <Klaus@ethgen.de>)
	id 1nE5jq-0006rV-Eq;
	Sun, 30 Jan 2022 09:39:10 +0100
Date: Sun, 30 Jan 2022 09:39:10 +0100
From: Klaus Ethgen <Klaus@ethgen.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Message-ID: <YfZOrk5gLPHw/MFG@ikki.ethgen.ch>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="dB3siqga5O2x8H0V"
Content-Disposition: inline
X-Reportbug-Version: 11.3.0+devuan1
OpenPGP: id=79D0B06F4E20AF1C;
 url=http://www.ethgen.ch/~klaus/79D0B06F4E20AF1C.txt; preference=signencrypt
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,SPF_PASS,
	URIBL_BLOCKED autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org
[Message part 1 (text/plain, inline)]
Package: reportbug
Version: 11.3.0+devuan1
Severity: normal

Since some time it is not possible anymore to use reportbug on non-utf8
encoding (or non-ascii?)

I get the following error:
   UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 3: invalid continuation byte

   The above exception was the direct cause of the following exception:

   SystemError: <class 'UnicodeDecodeError'> returned a result with an error set

   The above exception was the direct cause of the following exception:

   SystemError: <class 'UnicodeDecodeError'> returned a result with an error set

   The above exception was the direct cause of the following exception:

   SystemError: <class 'UnicodeDecodeError'> returned a result with an error set

   The above exception was the direct cause of the following exception:

   SystemError: <class 'UnicodeDecodeError'> returned a result with an error set

   The above exception was the direct cause of the following exception:

   SystemError: <class 'UnicodeDecodeError'> returned a result with an error set

   The above exception was the direct cause of the following exception:

   SystemError: <class 'UnicodeDecodeError'> returned a result with an error set

   The above exception was the direct cause of the following exception:

   Traceback (most recent call last):
     File "/usr/bin/reportbug", line 39, in <module>
       from reportbug import utils
     File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 100, in <module>
       _apt_cache = apt.Cache()
     File "/usr/lib/python3/dist-packages/apt/cache.py", line 152, in __init__
       self.open(progress)
     File "/usr/lib/python3/dist-packages/apt/cache.py", line 214, in open
       self._cache = apt_pkg.Cache(progress)
   SystemError: <class 'apt_pkg.Cache'> returned a result with an error set

I have to run reportbug with all LC_* and LANGUAGE variables deleted so
it will stay in pure ASCII.

This kind of bug is pretty common with python tools. Usually only python
authors are prone to this kind of bug. I almost never see this kind of
trouble from other programming languages.

-- Package-specific info:
** Environment settings:
EDITOR="vim"
PAGER="less"
VISUAL="vim"
EMAIL="Klaus Ethgen <Klaus@Ethgen.ch>"
DEBFULLNAME="Klaus Ethgen"
INTERFACE="text"

** /home/klaus/.reportbugrc:
reportbug_version "2.20"
mode expert
ui text
realname "Klaus Ethgen"
email "Klaus@Ethgen.de"

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 5 (daedalus/ceres)
Release:	5
Codename:	daedalus ceres
Architecture: x86_64

Kernel: Linux 5.13.4 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CPU_OUT_OF_SPEC, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages reportbug depends on:
ii  apt                2.3.14+devuan1
ii  python3            3.9.8-1
ii  python3-reportbug  11.3.0+devuan1
ii  sensible-utils     0.0.17

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
ii  debconf                                    1.5.79
ii  debsums                                    3.0.2
ii  dlocate                                    1.10
pn  emacs-bin-common                           <none>
ii  exim4-daemon-light [mail-transport-agent]  4.95-3
ii  file                                       1:5.41-2
ii  gnupg                                      2.2.27-3
ii  python3-urwid                              2.1.2-2+b1
pn  reportbug-gtk                              <none>
ii  xdg-utils                                  1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.3.14+devuan1
ii  file               1:5.41-2
ii  python3            3.9.8-1
ii  python3-apt        2.3.0+b1
ii  python3-debian     0.1.43
ii  python3-debianbts  3.2.0
ii  python3-requests   2.25.1+dfsg-2
ii  sensible-utils     0.0.17

python3-reportbug suggests no packages.

-- Configuration Files:
/etc/reportbug.conf changed:
submit
mutt
no-query-bts
cc
config-files
compress
sign gpg
verify
mode expert
mbox_reader_cmd "mutt -f %s"


-- no debconf information

Regards
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri May 3 12:27:37 2024;