[Bug 231650] lang/python36: Unreasonable error: UnicodeDecodeError: 'ascii' codec can't decode byte

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 24 02:36:46 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231650

            Bug ID: 231650
           Summary: lang/python36: Unreasonable error: UnicodeDecodeError:
                    'ascii' codec can't decode byte
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python at FreeBSD.org
          Reporter: yuri at freebsd.org
             Flags: maintainer-feedback?(python at FreeBSD.org)
          Assignee: python at FreeBSD.org

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=py36
   Observe this error:
===>  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 reads
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-python mailing list