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


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

mkdocs locale error building djangorestframework

Path csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Brian May <brian@linuxpenguins.xyz>
Newsgroups linux.debian.devel, linux.debian.maint.python
Subject mkdocs locale error building djangorestframework
Date Tue, 26 Jan 2016 01:30:02 +0100
Message-ID <qUZGa-3xa-3@gated-at.bofh.it> (permalink)
X-Original-To debian-devel@lists.debian.org, debian-python@lists.debian.org
X-Mailbox-Line From debian-devel-request@lists.debian.org Tue Jan 26 00:29:32 2016
Old-Return-Path <brian@linuxpenguins.xyz>
X-Amavis-Spam-Status No, score=-7.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1
Content-Type text/plain
X-Mailing-List <debian-devel@lists.debian.org> archive/latest/316886
List-ID <debian-devel.lists.debian.org>
List-URL <https://lists.debian.org/debian-devel/>
List-Archive https://lists.debian.org/msgid-search/87fuxl6v58.fsf@prune.linuxpenguins.xyz
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Michael Fladischer <fladi@debian.org>, python3-click@packages.debian.org
X-Original-Date Tue, 26 Jan 2016 11:29:07 +1100
X-Original-Message-ID <87fuxl6v58.fsf@prune.linuxpenguins.xyz>
Xref csiph.com linux.debian.devel:70136 linux.debian.maint.python:8154

Cross-posted to 2 groups.

Show key headers only | View raw


Hello,

In building djangorestframework, it uses a package called mkdocs.

mkdocs in turn uses a package called python3-click to do its command
line processing.

python3-click has checks to ensure it is called with a non-ASCII
locale. Or if it is an ASCII locale, it raises a fatal error. Or at
least it tries to raise a fatal error.

This is documented in the click documentation:
http://click.pocoo.org/5/python3/

An added complication is at the moment the code to display the fatal
error is broken under Python 3 - see #812713. You can't compare byte
objects and str objects.

The problem is that when building djangorestframework, I need to have a
utf8 locale available. C.UTF-8 is fine. However, I don't think there is
any guarantee (??) that a utf8 locale will be available when building
packages. This I believe is the root cause of #812672.

So should I somehow be trying to get the UTF-8 locale (is this possible
from debian/rules?), or should I submit another bug report against
python3-click saying that it really should work in ASCII environments?

Regards
-- 
Brian May <brian@linuxpenguins.xyz>
https://linuxpenguins.xyz/brian/

Back to linux.debian.maint.python | Previous | Next — 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