Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Klaus Zimmermann Newsgroups: linux.debian.maint.python Subject: Re: Strange encoding problem in setup.py of biopython 1.71 Date: Thu, 05 Apr 2018 16:50:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Apr 5 14:40:06 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.579 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MEDS2=2, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmx. - helo: .mout.gmx. - helo-domain: .gmx.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:oiiN6flAhL8JDiWIE+f0qGQAlcpC98jcXrsf4wNrZuozxXJj3cP K0lohejn83gdHJmhL+u9y+CnpnA08cHS87QOvuVB8KLLRiuyk2E1FdZxH0w2Umiuw0hrufd 58ocFZYVsi7aCuFhJCEqUmWM1thgInwIblrAv7316AIfZIbV7SkiHN1eap8IvhtFXEECNwv 21Me4NnDc5epaIBeuJmkA== X-Ui-Out-Filterresults: notjunk:1;V01:K0:FxeKmlzlI/4=:jk94eTPkPrbkjwGbCUHvCO MN55YGvtPbaQV9EN1iQD+Z79xEA5DXMAgpiGlYhrilnHbI3n+h8wC4brbpDd/alxgrxP/dvXZ ZOsk4Ky5p9F7BPgHY3fgDu43E2lTdkLmg7u6kyKChKNQFAVYl3jnIdD8sPJtgxS2XbUzMQPJi Mli+S0npi0Sm2aJ31JfcmbG0QfiRek264670lyBiAopBZ16cZ5XeRXNCKbjcIYEFSC92QXZjm eVpYN+J+JTlkPqlg5b+wig17gkbgWEFH91OMbVwqStCxZyKM/4IXVk9MI8sPcVWrVhGht2V4D 3iQWXJ4YK13BklSD200x0qX0cnjdKcBbfg0/QCaEjdeqTrp5FZUlbJAFB42qtL8rSK+930KMq ZR+uTcMC6wlBvJov4mxcF0TKo5oDzUvKwDlp1E0i1BWF6mGZzRJn7uwxoJu2NZuFQwpTsri1b uXPZ0INfkKYc5eWUXX1IpSE82wNCvdHvU5wKgaPV50nyqe7hz6BuoWeaNi6dZ62ThljFd68em FZ4emGT2yXm20EvtjPwDg8kIJucW0Bh3NYDADamKA5ziGTAl2t+KRmXdRJPwQLO6krtNumFE2 kZdGckO+4qkYv43gkhYyTKQA85MlvjVefnas/MfJVPv4p1GmGuOwJGV5Fvm5d4F4ZmWmgZIIG hGgBSy4Wbrgk3qu9ATnIvBACl1enj7mwpKFsWvXbEXsPGllAWiKJsKSplzBnYfl1dKenF7Ays ZIyg4MhEoT2SHLsSseYiGpLOh2RwXybE3/MCWlNLzAJguwMbNLeqX0qRlmIlKAc16jPnQatgE AysKkwBBhAqJfuNNvYz5o+5IJhXLAhu6TXWeMmPNj6zUsZpEN8= X-Mailing-List: archive/latest/15784 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1eb7f5a5-711a-8dc6-a376-e4a6fd298991@gmx.de Approved: robomod@news.nic.it Lines: 50 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 5 Apr 2018 16:39:47 +0200 X-Original-Message-ID: <1eb7f5a5-711a-8dc6-a376-e4a6fd298991@gmx.de> X-Original-References: <20180405141056.nsmfcwdingnmgx5d@an3as.eu> <20180405143432.xrnte6hyft7rf2vm@an3as.eu> Xref: csiph.com linux.debian.maint.python:10384 Hi Andreas, here, the culprit is U+2019 : RIGHT SINGLE QUOTATION MARK {single comma quotation mark} that is used as an apostrophe in two places in "Apple's". I found this by looking for 0xe2 (from your error message) in an hexdump (od -A d -xc README.rst |less ) at the named position (7116). Cheers Klaus On 05/04/18 16:34, Andreas Tille wrote: > Hi Olivier, > > On Thu, Apr 05, 2018 at 04:19:37PM +0200, Olivier Sallou wrote: >> >> On 04/05/2018 04:10 PM, Andreas Tille wrote: >>> (maybe?) setup.py: >>> >>> >>> ... >>> dh_auto_clean >>> pybuild --clean -i python{version} -p 2.7 >>> I: pybuild base:217: python2.7 setup.py clean >>> running clean >>> removing '/home/andreas/debian-maintain/salsa/med-team/build-area/python-biopython-1.71+dfsg/.pybuild/cpython2_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 >>> pybuild --clean -i python{version} -p 3.6 >>> I: pybuild base:217: python3.6 setup.py clean >>> Traceback (most recent call last): >>> File "setup.py", line 435, in >>> 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 >> this is usually related to non ascii characters in file (readme.rst?) , >> if you find some, you can patch file to remove them. > > Is there any efficient method to seek for this kind of non-ascii > characters? > > Kind regards > > Andreas. >