Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Python+readline? Pandu Poluan <pandu@××××××.info>
Re: [gentoo-user] Python+readline? Keith Dart <keith@×××××××××.biz>