Gentoo Archives: gentoo-portage-dev

From: "Anthony G. Basile" <basile@××××××××××××××.edu>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] pym/portage/util/locale.py: add a C module to check locale
Date: Wed, 18 May 2016 14:39:01
Message-Id: 573C7E7B.60103@opensource.dyc.edu
In Reply to: Re: [gentoo-portage-dev] [PATCH] pym/portage/util/locale.py: add a C module to check locale by Brian Dolbec
1 On 5/17/16 9:38 AM, Brian Dolbec wrote:
2 >
3 > Overall I like it, but I'll let others review the actual code
4 > implementation since I'm not an experienced "C" coder. In 30
5 > years, I never did more than hello world a few times in C. And the
6 > pascal coding I did in College is more like python than c.
7 >
8 >
9
10 I updated the patch and its working fine with python3.4 but with 2.7 I'm
11 hitting the following error which makes no sense to me. What's even
12 worse, is that I can manually import the module from a python2.7 shell
13 and it works as intended, but it doesn't in the context of portage.
14
15 As part of my debugging I stripped the module down to what amounts to a
16 "hello world" and I still hit this. So *any* python module written in C
17 is going to have this issue.
18
19 Anyone have a clue?
20
21
22 Traceback (most recent call last):
23 File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
24 retval = emerge_main()
25 File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1157,
26 in emerge_main
27 action=myaction, args=myfiles, opts=myopts)
28 File
29 "/usr/lib64/python2.7/site-packages/portage/proxy/objectproxy.py", line
30 31, in __call__
31 return result(*args, **kwargs)
32 File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line
33 2387, in load_emerge_config
34 root_trees["root_config"] = RootConfig(settings, root_trees, setconfig)
35 File "/usr/lib64/python2.7/site-packages/_emerge/RootConfig.py", line
36 27, in __init__
37 self.sets = self.setconfig.getSets()
38 File "/usr/lib64/python2.7/site-packages/portage/_sets/__init__.py",
39 line 284, in getSets
40 self._parse()
41 File "/usr/lib64/python2.7/site-packages/portage/_sets/__init__.py",
42 line 230, in _parse
43 optdict[oname] = parser.get(sname, oname)
44 File "/usr/lib64/python2.7/ConfigParser.py", line 623, in get
45 return self._interpolate(section, option, value, d)
46 File "/usr/lib64/python2.7/ConfigParser.py", line 691, in _interpolate
47 self._interpolate_some(option, L, rawval, section, vars, 1)
48 File "/usr/lib64/python2.7/ConfigParser.py", line 723, in
49 _interpolate_some
50 option, section, rest, var)
51 InterpolationMissingOptionError: Bad value substitution:
52 section: [usersets]
53 option : directory
54 key : portage_configroot
55 rawval : etc/portage/sets
56
57
58
59
60 --
61 Anthony G. Basile, Ph. D.
62 Chair of Information Technology
63 D'Youville College
64 Buffalo, NY 14201
65 (716) 829-8197