Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10382
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Piotr Ożarowski <piotr@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Strange encoding problem in setup.py of biopython 1.71 |
| Date | Thu, 05 Apr 2018 16:40:02 +0200 |
| Message-ID | <vBeds-5Ip-13@gated-at.bofh.it> (permalink) |
| References | <vBdU5-5Ck-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Thu Apr 5 14:36:03 2018 |
| Old-Return-Path | <piotr@ozarowski.pl> |
| X-Amavis-Spam-Status | No, score=-6.75 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5] 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 |
| Mail-Followup-To | debian-python@lists.debian.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20180223 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15782 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20180405143544.memwjpnumued7qi7@sar0.p1otr.com |
| Approved | robomod@news.nic.it |
| Lines | 21 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Thu, 5 Apr 2018 16:35:44 +0200 |
| X-Original-Message-ID | <20180405143544.memwjpnumued7qi7@sar0.p1otr.com> |
| X-Original-References | <20180405141056.nsmfcwdingnmgx5d@an3as.eu> |
| Xref | csiph.com linux.debian.maint.python:10382 |
Show key headers only | View raw
[Andreas Tille, 2018-04-05]
> Traceback (most recent call last):
> File "setup.py", line 435, in <module>
> readme_rst = handle.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 0xe2 in position 7116: ordinal not in range(128)
> E: pybuild pybuild:336: 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
> ...
in setup.py, if you decide to keep supporting Python 2, change lines 434-435 into:
with open("README.rst", 'rb') as handle:
readme_rst = handle.read().decode('UTF-8')
or if you finally let it go, change only line 434:
with open("README.rst", encoding='UTF-8') as handle:
--
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Strange encoding problem in setup.py of biopython 1.71 Andreas Tille <andreas@an3as.eu> - 2018-04-05 16:20 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Piotr Ożarowski <piotr@debian.org> - 2018-04-05 16:40 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Andreas Tille <andreas@an3as.eu> - 2018-04-05 16:40 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Klaus Zimmermann <klaus_zimmermann@gmx.de> - 2018-04-05 16:50 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Peter Cock <p.j.a.cock@googlemail.com> - 2018-04-05 17:30 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Andreas Tille <tille@debian.org> - 2018-04-06 09:20 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Peter Cock <p.j.a.cock@googlemail.com> - 2018-04-06 11:40 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Piotr Ożarowski <piotr@debian.org> - 2018-04-07 00:00 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Peter Cock <p.j.a.cock@googlemail.com> - 2018-04-13 13:20 +0200
Re: Strange encoding problem in setup.py of biopython 1.71 Olivier Sallou <olivier.sallou@irisa.fr> - 2018-04-05 16:50 +0200
csiph-web