Hey So i took some time to investigate this. Here are my findings:
On Wed, 29 Jun 2016 14:09:05 +0200 Christoph Biedl <debian.a...@manchmal.in-ulm.de> wrote: > Orestis Ioannou wrote... > > > So many tests failed with this stacktrace http://paste.debian.net/770211/ > > What I'd really like to see is the actual code and the circumstances > that triggered the stacktrace, probably a certain file. Still I failed > to create that, and this is important to fix the issue. > On debsources the code is http://anonscm.debian.org/cgit/qa/debsources.git/tree/debsources/navigation.py#n176 Steps to reproduce bug i fixed: clone file repository and checkout to commit e3f9082 (just before my commit) wget http://sources.debian.net/data/main/g/gnubg/1.04.000-1/debian/copyright You then inside file/python start python and: import magic mime = magic.open(magic.MIME_TYPE) mime.load() mime.file(u'path/to/copyright/file') Please note the u before the path. I tried it with many files and it always fails. With the fix i did it wasn't failing anymore. However on current master i can't reproduce the debsources bug since Reiner only touched the string conversion and not the bytes one. I am not sure if it is possible to reach the str(r, 'utf-8'). I can't seem to be able to do this but i haven't spend much time on it. Probably now python2/python3 is restored for good. Cheers, Orestis