Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [fyi] lddtree magic
Date: Wed, 10 Apr 2013 02:28:59
Message-Id: 201304092230.05032.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] [fyi] lddtree magic by Samuli Suominen
1 On Tuesday 09 April 2013 16:45:36 Samuli Suominen wrote:
2 > $ LC_ALL=C lddtree -l /bin/bash
3 > Traceback (most recent call last):
4 > File "/usr/bin/lddtree", line 450, in <module>
5 > sys.exit(main(sys.argv))
6 > File "/usr/bin/lddtree", line 437, in main
7 > elf = ParseELF(path, options.root, ldpaths)
8 > File "/usr/bin/lddtree", line 235, in ParseELF
9 > elf = ELFFile(f)
10 > File "/usr/lib64/python3.2/site-packages/elftools/elf/elffile.py",
11 > line 47, in __init__
12 > self._identify_file()
13 > File "/usr/lib64/python3.2/site-packages/elftools/elf/elffile.py",
14 > line 177, in _identify_file
15 > magic = self.stream.read(4)
16 > File "/usr/lib64/python3.2/encodings/ascii.py", line 26, in decode
17 > return codecs.ascii_decode(input, self.errors)[0]
18 > UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 25:
19 > ordinal not in range(128)
20
21 make sure you're using pax-utils-0.7 and pyelftools-0.20-r2. there were known
22 python-3 issues in earlier versions.
23
24 if it still fails, post a bug please.
25 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature