Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #9978
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ghislain Vaillant <ghisvail@gmail.com> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: python-csb: Please help: Clean target throws UnicodeDecodeError |
| Date | Mon, 13 Nov 2017 10:20:01 +0100 |
| Message-ID | <uLj4l-49P-5@gated-at.bofh.it> (permalink) |
| References | <uLhFf-38Q-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Mon Nov 13 09:17:42 2017 |
| Old-Return-Path | <ghisvail@gmail.com> |
| X-Amavis-Spam-Status | No, score=-7.779 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -7 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rxwNaXD0BoYePd6bz4jeiD2QenuiVDn6b6CRqJ63WBE=; b=c2bBgye/t55YE9AmSLOM81qJIE513hPcDYZuAN0BefST8RFbMnyc7TgTg5nC1W9UeB 9ieztTiQlLOiZMyZJM8Ag8qA1hGk9cpYfFFfdSo7CEH6PKvqmlv3iyNm+UQIVp1V+0se ivgyXlMv7IIEwKO45opHF0WptOF1moCnYEp1loyvD1PxxXo4Smu5aulj3kZJ3cFBUCrD MiOqyAS4A+HkZPEiLuOPf+9pUFIMqPfQypLOblPl1fB9/jAz7CJvFPWnxGbcpvoS39FM 6HXKy6LtUEziibNzWYqpIDl/wxLdx8bxOlqBIjtfpzaFPspBOhF5jFAwah9dEOkXSRuN c5wQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rxwNaXD0BoYePd6bz4jeiD2QenuiVDn6b6CRqJ63WBE=; b=XBCizA6Pu+YMfFbeSOFai4pUtx83axPquODBG6rGAMbaX0Yg9IlkalHxommCttWmF0 8TmEZHBCR7qFCLmf4a4uKl+C7Hj+5g5Iy2BL9hQWp17bDl8mb1fuwApKqvQ8uBDRmiqI 3/qUDMBBI3PsxqoVkxS5P8H6w+60SNt+T8tMiRifHXY+B/9jRgx5tFef6JxnLRc/D2tl ikkL05wftpjij0QMuUqALNK7wWX1PM2seT7GDco6MRPHuSddX2AHIwj1+DGbb1WdSM6m v+lkTaoF0BfRGVwp6K7g+r/VMSBO1V3kWmqJ0MpntCWaiA6T7tG0wf2qeGCogdkzMrd0 piLw== |
| X-Gm-Message-State | AJaThX6BHmpD/zyNM29sbplYCwGgWyGsxpdgYMSCIxFuqGeIrHQQnPnf k5CdsHXfjjZLgTtx4YNPp288mmiU |
| X-Google-SMTP-Source | AGs4zMY7YypmKdfwaBtEvP5FPUSuFk5rqYxqqjYBGNPO8GrevOaYHAW+aw/+oA7OfT/9f9yA76Dg/g== |
| X-Received | by 10.28.90.65 with SMTP id o62mr4700148wmb.16.1510564646110; Mon, 13 Nov 2017 01:17:26 -0800 (PST) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Language | en-US |
| Content-Transfer-Encoding | 7bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15361 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/2ee41aba-44d6-b259-f382-490a673c13c7@gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 55 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>, debian-python@lists.debian.org |
| X-Original-Date | Mon, 13 Nov 2017 09:17:24 +0000 |
| X-Original-Message-ID | <2ee41aba-44d6-b259-f382-490a673c13c7@gmail.com> |
| X-Original-References | <20171113074107.zl3tvck6oqhitazy@an3as.eu> |
| Xref | csiph.com linux.debian.maint.python:9978 |
Show key headers only | View raw
On 13/11/17 07:41, Andreas Tille wrote:
> Hi,
>
> I'm trying to upgrade python-csb to the new upstream version (in
> Git[1]). If I try to build it I get:
>
>
> gbp:info: Building with (cowbuilder) for sid
> gbp:info: Tarballs 'python-csb_1.2.5+dfsg.orig.tar.gz' not found at '../tarballs/'
> gbp:info: Creating /home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb_1.2.5+dfsg.orig.tar.gz
> gbp:info: Exporting 'WC' to '/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-tmp'
> gbp:info: Moving '/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-tmp' to '/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-1.2.5+dfsg'
> I: using cowbuilder as pbuilder
> dpkg-source: info: applying exclude_online_tests.patch
> dpkg-source: info: applying reproducible.patch
> dh clean --with python2,python3 --buildsystem=pybuild
> debian/rules override_dh_auto_clean
> make[1]: Entering directory '/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-1.2.5+dfsg'
> dh_auto_clean
> I: pybuild base:184: python2.7 setup.py clean
> running clean
> removing '/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-1.2.5+dfsg/.pybuild/pythonX.Y_2.7/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-2.7' does not exist -- can't clean it
> I: pybuild base:184: python3.6 setup.py clean
> Traceback (most recent call last):
> File "setup.py", line 8, in <module>
> __doc__ = open('README.rst').read()
> File "/usr/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 0xc2 in position 4205: ordinal not in range(128)
> E: pybuild pybuild:283: clean: plugin distutils failed with: exit code=1: python3.6 setup.py clean
> dh_auto_clean: pybuild --clean -i python{version} -p 3.6 returned exit code 13
> debian/rules:21: recipe for target 'override_dh_auto_clean' failed
>
>
> Any idea how to fix this?
In the preamble of `setup.py` add:
```
from io import open
```
Then replace subsequent calls to `open` in the file with:
```
open(..., encoding="utf-8")
```
Worth forwarding the patch upstream.
Ghis
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
python-csb: Please help: Clean target throws UnicodeDecodeError Andreas Tille <andreas@an3as.eu> - 2017-11-13 08:50 +0100 Re: python-csb: Please help: Clean target throws UnicodeDecodeError Ghislain Vaillant <ghisvail@gmail.com> - 2017-11-13 10:20 +0100
csiph-web