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

Re: Some remaining test failures (Was: Please help clarifying licensed)



Hi Python wizards,

I try to package DendroPy at

   git://anonscm.debian.org/debian-med/python-dendropy.git

Unfortunately 4 out of > 300 tests fail for Python3 exclusively.
Upstream can not reproduce this and the setting LANG=en_US.utf-8 does
not help unfortunately.

Any help to solve this strange encoding problem would be welcome.

Kind regards

      Andreas.

On Wed, Jul 29, 2015 at 01:47:36PM -0400, Jeet Sukumaran wrote:
> Hi Andreas,
> 
> Unfortunately, I cannot reproduce these errors on my system.
> 
> They all seem to have the same root cause:
> 
>     File "/usr/lib/python3.4/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
> 181: ordinal not in range(128)
> 
> 
> This means that the stream of bytes being read cannot be converted to a
> Unicode string in your environment.
> 
> I do not understand why this is happening when reading text from a file,
> however.
> 
> Could you set the LANG shell environmental variable and see if the problem
> is still there? I have mine set to:
> 
> 	export LANG=en_US.utf-8
> 
> but even when unset, I cannot replicate the problem.
> 
> In principle, I might be able forcibly ignore the error by opening the file
> stream with:
> 
> 	stream = open(path, errors="ignore")
> 
> but without being able to rproduce the problem on my end, cannot test the
> solution.
> 
> -- jeet
> 
> 
> 
> On 7/29/15 7:27 AM, Andreas Tille wrote:
> >Hi Jeet,
> >
> >On Wed, Jul 29, 2015 at 01:09:56AM -0400, Jeet Sukumaran wrote:
> >>Hi Andreas,
> >>
> >>I just tagged, pushed, and published release 4.0.3.
> >
> >Thanks a lot for your support.
> >
> >>Please let me know if there are any issues.
> >
> >I injected it into Debian packaging Git and tried to build.
> >Unfortunately there are some remaining errors when running the test
> >suite.  All four are encoding errors (see attached build log extract).
> >
> >Are you able to reproduce (and fix this)?
> >
> >Kind regards
> >
> >      Andreas.
> >
> 
> -- 
> 
> 
> 
> --------------------------------------
> Jeet Sukumaran
> --------------------------------------
> jeetsukumaran@gmail.com
> --------------------------------------
> Blog/Personal Pages:
>    http://jeetworks.org/
> GitHub Repositories:
>    http://github.com/jeetsukumaran
> Photographs (as stream):
>    http://www.flickr.com/photos/jeetsukumaran/
> Photographs (by galleries):
>    http://www.flickr.com/photos/jeetsukumaran/sets/
> --------------------------------------
> 
> 

-- 
http://fam-tille.de


Reply to: