ImportError: No module named readline

3,068 views
Skip to first unread message

ousia221

unread,
Feb 15, 2011, 11:46:32 PM2/15/11
to Android Building
I encountered an error with the below message when I commanded "~/
mydroid$ repo init -u git://android.git.kernel.org/platform/manifest.g
on terminal".

Traceback (most recent call last):
File "/home/[user]/bin/repo", line 91, in ?
import readline
ImportError: No module named readline

I am working on Ubuntu 10.04 and installed libreadline5, libreadline6,
libreadline6-dev, libreadline6-dbg, lib32readline5, lib32readline6,
lib32readline6-dev, etc.

If you know how to avoid this error, please reply.
Thanks.

Jean-Baptiste Queru

unread,
Feb 16, 2011, 10:51:25 AM2/16/11
to android-...@googlegroups.com
I think this happens when using a version of python that is too
recent, and repo relies on the specifics of older versions.

My understanding is that repo works fine with the version of python
that comes with Ubuntu 10.04.

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

MadRocker

unread,
Feb 16, 2011, 3:49:45 PM2/16/11
to Android Building
ImportError: No module named readline

You might need to restart after installing repo as this could help.

Vaishali

unread,
Sep 10, 2012, 11:33:30 AM9/10/12
to android-...@googlegroups.com

sudo apt-get install libreadline-dev
then
make clean
./configure
make
make install

On Sat, Sep 8, 2012 at 10:49 AM, helong <helon...@gmail.com> wrote:
me too.I tried to install readline ,but the module which called  setuptools is missing ,I spent the whole morning installing it ,but everything in vain ,If you have solved it,please tell me,thangyou
Reply all
Reply to author
Forward
0 new messages