Re: [gentoo-user] Python+readline?
On Mon, 30 Jan 2012 22:38:55 -0500 Walter Dnes waltd...@waltdnes.org wrote: The emerge output shows that python would be replaced, and that the readline USE flag has been set on the previous merge. I also ran revdep-rebuild, and it found nothing. The python command modules, from inside the interactive help() command shows a ton of modules, but not readline. Now what? That's very odd. Try this: $ find /usr/lib/python2.7 -name readline* -print And see if you get this: /usr/lib/python2.7/lib-dynload/readline.so also, which python, in case you might have another one installed... and what is sys.path? Does sys.path contain '/usr/lib64/python2.7/lib-dynload'? -- -- ~ Keith Dart ke...@dartworks.biz public key: ID: 19017044 http://www.dartworks.biz/ =
Re: [gentoo-user] Python+readline?
On Mon, 30 Jan 2012 02:25:30 -0500 Walter Dnes waltd...@waltdnes.org wrote: On Sun, Jan 29, 2012 at 10:42:47PM -0800, Keith Dart wrote On Sat, 28 Jan 2012 04:01:40 -0500 Walter Dnes waltd...@waltdnes.org wrote: I've enabled the readline flag for the python build, but it doesn't seem to work. Are there any other settings I'm missing? What happens when you import readline ? waltdnes@d530 ~ $ python Python 2.7.2 (default, Dec 14 2011, 00:09:44) [GCC 4.5.3] on linux2 Type help, copyright, credits or license for more information. import readline Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named readline ok, how about the output of: emerge -pv dev-lang/python:2.7 Did you do something with the readline library? -- -- ~ Keith Dart ke...@dartworks.biz public key: ID: 19017044 http://www.dartworks.biz/ =
Re: [gentoo-user] Python+readline?
On Mon, Jan 30, 2012 at 01:38:53AM -0800, Keith Dart wrote ok, how about the output of: emerge -pv dev-lang/python:2.7 Did you do something with the readline library? I hate multi-slot. I added readline to dev-lang/python in /etc/portage/package.use, and then ran emerge -1 python... which proceeded to update python 3.1, but *NOT* python 2.7. After I did... emerge -1 =dev-lang/python-2.7.2-r3 =dev-lang/python-3.1.4-r3 I got the same error, even after rebuilding. = waltdnes@d530 ~ $ emerge -pv python:2.7 These are the packages that would be merged, in order: Calculating dependencies... done! [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 Total: 1 package (1 reinstall), Size of downloads: 0 kB waltdnes@d530 ~ $ python Python 2.7.2 (default, Jan 30 2012, 19:42:20) [GCC 4.5.3] on linux2 Type help, copyright, credits or license for more information. import readline Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named readline = The emerge output shows that python would be replaced, and that the readline USE flag has been set on the previous merge. I also ran revdep-rebuild, and it found nothing. The python command modules, from inside the interactive help() command shows a ton of modules, but not readline. Now what? -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] Python+readline?
On Jan 31, 2012 10:43 AM, Walter Dnes waltd...@waltdnes.org wrote: On Mon, Jan 30, 2012 at 01:38:53AM -0800, Keith Dart wrote ok, how about the output of: emerge -pv dev-lang/python:2.7 Did you do something with the readline library? I hate multi-slot. I added readline to dev-lang/python in /etc/portage/package.use, and then ran emerge -1 python... which proceeded to update python 3.1, but *NOT* python 2.7. After I did... emerge -1 =dev-lang/python-2.7.2-r3 =dev-lang/python-3.1.4-r3 I got the same error, even after rebuilding. = waltdnes@d530 ~ $ emerge -pv python:2.7 These are the packages that would be merged, in order: Calculating dependencies... done! [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 Total: 1 package (1 reinstall), Size of downloads: 0 kB waltdnes@d530 ~ $ python Python 2.7.2 (default, Jan 30 2012, 19:42:20) [GCC 4.5.3] on linux2 Type help, copyright, credits or license for more information. import readline Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named readline = The emerge output shows that python would be replaced, and that the readline USE flag has been set on the previous merge. I also ran revdep-rebuild, and it found nothing. The python command modules, from inside the interactive help() command shows a ton of modules, but not readline. Now what? Have you run python-updater? Rgds,
Re: [gentoo-user] Python+readline?
On Sat, 28 Jan 2012 04:01:40 -0500 Walter Dnes waltd...@waltdnes.org wrote: I've enabled the readline flag for the python build, but it doesn't seem to work. Are there any other settings I'm missing? What happens when you import readline ? -- -- ~ Keith Dart ke...@dartworks.biz public key: ID: 19017044 http://www.dartworks.biz/ =
Re: [gentoo-user] Python+readline?
On Sun, Jan 29, 2012 at 10:42:47PM -0800, Keith Dart wrote On Sat, 28 Jan 2012 04:01:40 -0500 Walter Dnes waltd...@waltdnes.org wrote: I've enabled the readline flag for the python build, but it doesn't seem to work. Are there any other settings I'm missing? What happens when you import readline ? waltdnes@d530 ~ $ python Python 2.7.2 (default, Dec 14 2011, 00:09:44) [GCC 4.5.3] on linux2 Type help, copyright, credits or license for more information. import readline Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named readline -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] Python+readline?
On 28.01.2012 10:01, Walter Dnes wrote: I've enabled the readline flag for the python build, but it doesn't seem to work. Are there any other settings I'm missing? daniel@moja ~ $ cat .pythonstartup #!/usr/bin/python try: import readline except ImportError: print Module readline not available. else: import rlcompleter readline.parse_and_bind(tab: complete) -- PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887op=get # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887 signature.asc Description: OpenPGP digital signature