[IPython-user] ipython won't take >b< from the keyboard

Glenn grpython@sonic....
Sat Jan 31 13:32:36 CST 2009


I've done some more testing and have gotten results I don't understand.

If I open a terminal window and start IPython when I'm logged in as  
user1, the letter 'b' works as expected. If I log in as user2, and  
then start IPython, 'b' acts like ^G (makes a sound, but doesn't  
insert the character).

Either user I'm logged in as gives the same short Python session:


$ python
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import readline
 >>> import commands
 >>> (s,r) = commands.getstatusoutput('otool -L %s'%readline.__file__)
 >>> print r
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages/readline-2.5.1-py2.5-macosx-10.5-ppc.egg/readline.so:
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current  
version 5.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current  
version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current  
version 111.0.0)

In IPython as either user, tab completion works as expected: a  
horizontal list of choices (if there is more than one) and then  
automatic completion when there is only one choice:

$ ipython
Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
Type "copyright", "credits" or "license" for more information.

IPython 0.9.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: im
images.py   images.pyc  import

In [1]: import

Any ideas?

Glenn



>
>
> On 2009-01-30 15:03, Glenn wrote:
>> Hi,
>>
>> I'm running python 2.5.4 on os-x 10.5.6 (PPC). I just downloaded and
>> installed ipython 0.9.1.
>>
>> I've played with ipython a bit, and most behavior is as expected,
>> except when I type a 'b', the computer makes a sound just like when I
>> try to delete past the beginning of a line, and it doesn't display  
>> the
>> 'b'. So things like 'from pylab import *' fail.
>>
>> Has anyone seen this before? What can I do to fix it?
>
> Yes, we've seen this before deep in the bowels of this thread:
>
>   http://www.mail-archive.com/pythonmac-sig@python.org/msg06997.html
>
> When you start up IPython, do you see this line?
>
>   Leopard libedit detected.
>
> Which Python distribution are you using? Do you know which readline  
> module you
> are using? Can you show us the output of the following (note: *not*  
> from inside
> IPython)?
>
>>>> import readline
>>>> import commands
>>>> (s,r) = commands.getstatusoutput('otool -L %s' % readline.__file__)
>>>> print r
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- 
> dynload/readline.so:
>
> /Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses. 
> 5.dylib
> (compatibility version 5.0.0, current version 5.0.0)
>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
> current
> version 88.3.3)
>
> -- 
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a  
> harmless enigma
>  that is made terrible by our own mad attempt to interpret it as  
> though it had
>  an underlying truth."
>   -- Umberto Eco
>
>
>
> ------------------------------
>
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
>
>
> End of IPython-user Digest, Vol 63, Issue 14
> ********************************************
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ipython.scipy.org/pipermail/ipython-user/attachments/20090131/014eedf5/attachment.html 


More information about the IPython-user mailing list