Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68542
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mail@timgolden.me.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'importerror:': 0.07; 'bash': 0.09; 'git': 0.09; 'override': 0.09; 'python': 0.11; '2.7': 0.14; 'windows': 0.15; '(assuming': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'guys,': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:import': 0.16; 'tjg': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'module': 0.19; "hasn't": 0.19; 'import': 0.22; 'shell': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'received:192.168.100': 0.24; '2010,': 0.27; 'header:In-Reply- To:1': 0.27; 'lines': 0.31; 'commonly': 0.31; 'maintains': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; '(most': 0.33; 'but': 0.35; 'version': 0.36; 'installing': 0.36; 'possible': 0.36; 'url:org': 0.36; 'operating': 0.37; 'project': 0.37; 'auto': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'skip:u 10': 0.60; 'here:': 0.62; 'complete': 0.62; 'more': 0.64; 'note:': 0.66; 'url:0': 0.67; 'jul': 0.74; 'from:addr:mail': 0.83; '(ie': 0.84 |
| Date | Wed, 19 Mar 2014 09:30:02 +0000 |
| From | Tim Golden <mail@timgolden.me.uk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: unable to import rlcompleter readline |
| References | <CACk27ULHNogjmnRrOBMXvLQYHeoqLOM48b+3f-SqqQwFkVZ3fA@mail.gmail.com> |
| In-Reply-To | <CACk27ULHNogjmnRrOBMXvLQYHeoqLOM48b+3f-SqqQwFkVZ3fA@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8275.1395221406.18130.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1395221406 news.xs4all.nl 2967 [2001:888:2000:d::a6]:57759 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68542 |
Show key headers only | View raw
On 19/03/2014 08:55, muru kessan wrote:
> hi guys,
> i want the python interactive shell to be auto complete and i found that
> by adding the following lines in PYTHONSTARTUP file it is possible
>
> import rlcompleter, readline
> readline.parse_and_bind('tab: complete')
>
> but i get the following error in git bash shell
> Note: i run windows8 as Operating System
>
> Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit
> (AMD64)] on win
> 32
> Type "help", "copyright", "credits" or "license" for more information.
> Traceback (most recent call last):
> File "C:\muru work 05-nov-2013\python\start.py", line 6, in <module>
> import rlcompleter, readline
> ImportError: No module named readline
readline is commonly provided on *nix systems, but not on Windows. You
can install a plug-compatible version here:
https://pypi.python.org/pypi/pyreadline/2.0
(ie pip install pyreadline)
or just use IPython which project maintains it:
http://ipython.org/
NB installing pyreadline will override the way in which Python interacts
with the standard Windows console's up/down/history recall features.
(Assuming it hasn't changed since I last used it a few years ago).
TJG
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: unable to import rlcompleter readline Tim Golden <mail@timgolden.me.uk> - 2014-03-19 09:30 +0000
csiph-web