From owner-freebsd-python@freebsd.org Sat Aug 22 15:07:20 2020 Return-Path: Delivered-To: freebsd-python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 489593BE6A3 for ; Sat, 22 Aug 2020 15:07:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYhZJ1Fr6z4l74 for ; Sat, 22 Aug 2020 15:07:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2B1A73BE6A2; Sat, 22 Aug 2020 15:07:20 +0000 (UTC) Delivered-To: python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2AE513BE6A1 for ; Sat, 22 Aug 2020 15:07:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYhZJ0RWMz4lBY for ; Sat, 22 Aug 2020 15:07:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CCB4517DF8 for ; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07MF7JM5059063 for ; Sat, 22 Aug 2020 15:07:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07MF7JGv059062 for python@FreeBSD.org; Sat, 22 Aug 2020 15:07:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 248834] devel/py-appdirs: Configure phase fails with UnicodeDecodeError in 'ascii' codec Date: Sat, 22 Aug 2020 15:07:19 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john@saltant.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 15:07:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248834 Bug ID: 248834 Summary: devel/py-appdirs: Configure phase fails with UnicodeDecodeError in 'ascii' codec Product: Ports & Packages Version: Latest Hardware: Any URL: https://github.com/ActiveState/appdirs/pull/152 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: john@saltant.com CC: python@FreeBSD.org Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org Attachment #217444 maintainer-approval?(python@FreeBSD.org) Flags: CC: python@FreeBSD.org Flags: merge-quarterly? Created attachment 217444 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217444&action= =3Dedit devel/py-appdirs: Backport explicit encoding patch Symptom =3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D> Configuring for py36-appdirs-1.4.4 Traceback (most recent call last): File "", line 1, in File "setup.py", line 25, in for line in read("appdirs.py").splitlines(): File "setup.py", line 19, in read out =3D "\n" + inf.read().replace("\r\n", "\n") File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc8 in position 129: ordinal not in range(128) *** Error code 1 Stop. make: stopped in /usr/ports/devel/py-appdirs Analysis =3D=3D=3D=3D=3D=3D=3D=3D The appdirs.py file is UTF-8 encoded, and under certain circumstances, the built-in `open` function will guess the wrong encoding. QA =3D=3D portlint: OK poudriere: OK -- testport on 12.1R amd64 w/py27, py35, py36, py37 (default), and py38 Note: The attached patch does not increment PORTREVISION because if the bug= is triggered, no package is produced. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=