Date: Fri, 21 Jan 2022 23:11:05 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 261388] sysutils/uefi-edk2-qemu: Fix build with Python 3.9 Message-ID: <bug-261388-21822-0oDB1A0dZX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-261388-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-261388-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261388 --- Comment #3 from Eric Camachat <eric@camachat.org> --- BaseTools/Source/Python/AutoGen/UniClassObject.py: codecs.lookup('ucs-2') --> LookupError: unknown encoding: ucs-2 So, change to codecs.lookup('utf-16') BaseTools/Source/Python/Common/Misc.py: array.tostring() has been renamed to array.tobytes() ref. https://docs.python.org/3/library/array.html#array.array.tobytes Note, the document says "New in version 3.2: tostring() is renamed to tobyt= es() for clarity.", but seems pkg.freebsd.org can build it with Python 3.8. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261388-21822-0oDB1A0dZX>