[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange encoding problem in setup.py of biopython 1.71




On 04/05/2018 04:34 PM, 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 <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
>> 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?
I found none  :-(  but looking at file content
>
> Kind regards
>
>       Andreas.
>

-- 
Olivier Sallou
Univ Rennes, Inria, CNRS, IRISA
Irisa, Campus de Beaulieu
F-35042 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438


Reply to: