Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Python+readline?
Date: Tue, 31 Jan 2012 06:17:02
Message-Id: CAA2qdGWKi13Vwc-ZPqOirMfeWbdebo1og0rhppL4ciM7ZKGWfw@mail.gmail.com
In Reply to: Re: [gentoo-user] Python+readline? by Walter Dnes
1 On Jan 31, 2012 10:43 AM, "Walter Dnes" <waltdnes@××××××××.org> wrote:
2 >
3 > On Mon, Jan 30, 2012 at 01:38:53AM -0800, Keith Dart wrote
4 >
5 > > ok, how about the output of:
6 > >
7 > > emerge -pv dev-lang/python:2.7
8 > >
9 > > Did you do something with the readline library?
10 >
11 > I hate multi-slot. I added readline to dev-lang/python in
12 > /etc/portage/package.use, and then ran "emerge -1 python"... which
13 > proceeded to update python 3.1, but *NOT* python 2.7. After I did...
14 >
15 > emerge -1 =dev-lang/python-2.7.2-r3 =dev-lang/python-3.1.4-r3
16 >
17 > I got the same error, even after rebuilding.
18 >
19 > =============================================================
20 > waltdnes@d530 ~ $ emerge -pv python:2.7
21 >
22 > These are the packages that would be merged, in order:
23 >
24 > Calculating dependencies... done!
25 > [ebuild R ] dev-lang/python-2.7.2-r3 USE="readline ssl threads
26 (wide-unicode) xml -berkdb -build -doc -examples -gdbm -ipv6 -ncurses
27 -sqlite -tk -wininst" 0 kB
28 >
29 > Total: 1 package (1 reinstall), Size of downloads: 0 kB
30 > waltdnes@d530 ~ $ python
31 > Python 2.7.2 (default, Jan 30 2012, 19:42:20)
32 > [GCC 4.5.3] on linux2
33 > Type "help", "copyright", "credits" or "license" for more information.
34 > >>> import readline
35 > Traceback (most recent call last):
36 > File "<stdin>", line 1, in <module>
37 > ImportError: No module named readline
38 > >>>
39 > =============================================================
40 >
41 > The emerge output shows that python would be replaced, and that the
42 > "readline" USE flag has been set on the previous merge. I also ran
43 > revdep-rebuild, and it found nothing. The python command "modules",
44 > from inside the interactive "help()" command shows a ton of modules, but
45 > not "readline". Now what?
46 >
47
48 Have you run python-updater?
49
50 Rgds,