Re: mkdocs locale error building djangorestframework
On Mon, Jan 25, 2016 at 23:13:49 -0500, Barry Warsaw wrote:
> On Jan 26, 2016, at 01:12 AM, Ben Hutchings wrote:
> >That's not the problem at all. Read the error message again. Read the
> >source line it points to. Now look at where rv comes from:
> >>>> import subprocess
> >>>> rv = subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE,
> >... stderr=subprocess.PIPE).communicate()
> >>>> type(rv)
> ><class 'bytes'>
> For Python 3, try adding `universal_newlines=True` to any subprocess call.
> You'll get back a str.
Or a UnicodeDecodeError.