Date: Mon, 24 Sep 2018 02:36:43 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 231650] lang/python36: Unreasonable error: UnicodeDecodeError: 'ascii' codec can't decode byte Message-ID: <bug-231650-21822-bfRLUJ2hi2@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-231650-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-231650-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-python mailing list <python@FreeBSD.org> for maintainer-feedback: Bug 231650: lang/python36: Unreasonable error: UnicodeDecodeError: 'ascii' codec can't decode byte https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231650 --- Description --- Several ports had this problem that was patched. Testcase: math/py-cyipopt How to reproduce: 1. Remove the patch files/patch-ipopt_version.py 2. Run: make FLAVOR=3Dpy36 Observe this error: =3D=3D=3D> Configuring for py36-cyipopt-0.1.8 Traceback (most recent call last): File "<string>", line 1, in <module> File "setup.py", line 28, in <module> exec(open('ipopt/version.py').read()) 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 0xc3 in position 199: ordinal not in range(128) The file setup.py is marked as utf-8. The file ipopt/version.py that it rea= ds is also marked as utf-8. Python should be using the utf-8 codec to read this file and not fail like this. This doesn't happen with python-2.7.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231650-21822-bfRLUJ2hi2>