LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-30-2007, 02:45 AM   #1
varun_shrivastava
Member
 
Registered: Jun 2006
Distribution: Ubuntu 7.04 Feisty
Posts: 79

Rep: Reputation: 15
how to configure keyboard in python command prompt


i can't use 'del' 'arrow keys' while inside python

it displays some mess
Code:
>>> ^[[A^[[C^[[B^[[B^[[A^[[D^[[B^[[A
 
Old 05-31-2007, 01:20 PM   #2
csinclair
LQ Newbie
 
Registered: Nov 2006
Location: Canada
Distribution: Slackware 11, DSL (Debian), Ubuntu 8.04 (Hardy Heron), Smoothwall, Ophcrack & BackTrack2
Posts: 21

Rep: Reputation: 15
readline support in python

Hi,

Sounds like no readline support in python, which O/S version are you using? I've heard of readline support not being enabled within certain builds of python (Solaris).

Try this, start python from the command line..

Code:
># python
>>> import readline
If it throws an error message or complains, you may have an incomplete installation of python, it may be best to rebuild python again to enable readline support.

Hope that helps,
Craig
 
Old 05-31-2007, 11:38 PM   #3
varun_shrivastava
Member
 
Registered: Jun 2006
Distribution: Ubuntu 7.04 Feisty
Posts: 79

Original Poster
Rep: Reputation: 15
yes it displays error message

Code:
>>> import readline
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named readline
>>>
but i installed python from the source code available at python.org
do i need something else to check or can the module be installed independently

one more question "import gtk" also displays error message
i downloaded the module and tried to install it but displays error message

Code:
checking for a Python interpreter with version >= 2.3.5... none
configure: error: no suitable Python interpreter found


thanks for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard useless at YAMON prompt. ashlesha Linux - Software 0 07-25-2006 03:12 PM
how to configure GUI from linux prompt mediaworld Linux - Newbie 2 05-25-2006 12:08 PM
Command line/ command prompt saiinch Linux - Newbie 5 03-17-2006 02:29 AM
How to configure Konsole bash prompt? lasindi Linux - Software 6 01-16-2005 05:38 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM


All times are GMT -5. The time now is 08:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration