Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8175

Re: mkdocs locale error building djangorestframework

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Julien Cristau <jcristau@debian.org>
Newsgroups linux.debian.devel, linux.debian.maint.python
Subject Re: mkdocs locale error building djangorestframework
Date Thu, 28 Jan 2016 14:10:02 +0100
Message-ID <qVUuK-3R3-13@gated-at.bofh.it> (permalink)
References <qUZGa-3xa-3@gated-at.bofh.it> <qUZZw-3Gr-7@gated-at.bofh.it> <qUZZw-3Gr-5@gated-at.bofh.it> <qV0sz-46L-21@gated-at.bofh.it> <qV3gL-680-27@gated-at.bofh.it>
X-Mailbox-Line From debian-devel-request@lists.debian.org Thu Jan 28 13:01:59 2016
Old-Return-Path <julien@cristau.org>
X-Amavis-Spam-Status No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
X-Operating-System Linux 4.3.0-1-amd64 x86_64
User-Agent Mutt/1.5.24 (2015-08-30)
X-Mailing-List <debian-devel@lists.debian.org> archive/latest/316922
List-ID <debian-devel.lists.debian.org>
List-URL <https://lists.debian.org/debian-devel/>
List-Archive https://lists.debian.org/msgid-search/20160128130139.GK4080@betterave.cristau.org
Approved robomod@news.nic.it
Lines 20
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-devel@lists.debian.org, debian-python@lists.debian.org, python3-click@packages.debian.org
X-Original-Date Thu, 28 Jan 2016 14:01:39 +0100
X-Original-Message-ID <20160128130139.GK4080@betterave.cristau.org>
X-Original-References <87fuxl6v58.fsf@prune.linuxpenguins.xyz> <1453768975.3734.251.camel@decadent.org.uk> <877fix6u7m.fsf@prune.linuxpenguins.xyz> <1453770777.3734.260.camel@decadent.org.uk> <20160125231349.202097d1@subdivisions.wooz.org>
Xref csiph.com linux.debian.devel:70170 linux.debian.maint.python:8175

Cross-posted to 2 groups.

Show key headers only | View raw


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()[0]
> >>>> 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.

Cheers,
Julien

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

mkdocs locale error building djangorestframework Brian May <brian@linuxpenguins.xyz> - 2016-01-26 01:30 +0100
  Re: mkdocs locale error building djangorestframework Ben Hutchings <ben@decadent.org.uk> - 2016-01-26 01:50 +0100
    Re: mkdocs locale error building djangorestframework Brian May <bam@debian.org> - 2016-01-26 01:50 +0100
      Re: mkdocs locale error building djangorestframework Brian May <bam@debian.org> - 2016-01-26 02:20 +0100
        Re: mkdocs locale error building djangorestframework Ben Hutchings <ben@decadent.org.uk> - 2016-01-26 02:30 +0100
          Re: mkdocs locale error building djangorestframework Brian May <bam@debian.org> - 2016-01-26 02:30 +0100
          Re: mkdocs locale error building djangorestframework Michael Tautschnig <mt@debian.org> - 2016-01-26 03:30 +0100
      Re: mkdocs locale error building djangorestframework Ben Hutchings <ben@decadent.org.uk> - 2016-01-26 02:20 +0100
        Re: mkdocs locale error building djangorestframework Barry Warsaw <barry@debian.org> - 2016-01-26 05:20 +0100
          Re: mkdocs locale error building djangorestframework Julien Cristau <jcristau@debian.org> - 2016-01-28 14:10 +0100
        Re: mkdocs locale error building djangorestframework Alexandre Viau <aviau@debian.org> - 2016-01-26 16:10 +0100

csiph-web