Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-30 Thread Robert Kern
Robert Kern wrote: > Boyd Waters wrote: >> On Oct 26, 2007, at 7:50 PM, [EMAIL PROTECTED] wrote: >> >>> It right there in my original message (and in the python man page). >>> You have to use EditLine syntax: >>> >>> readline.parse_and_bind ("bind ^I rl_complete") >> Edward's example of using Ed

Re: [Pythonmac-SIG] [IPython-dev] readline support for OS X Leopard

2007-10-30 Thread Boyd Waters
On Oct 30, 2007, at 6:16 PM, Robert Kern wrote: > I meant that trying that with a readline module > compiled against GNU readline interferes with typing "b". So, > unfortunately, you > can't just issue both commands hoping that the library will just > ignore the > wrong one. I'm not sure I

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-30 Thread Boyd Waters
On Oct 26, 2007, at 7:50 PM, [EMAIL PROTECTED] wrote: > It right there in my original message (and in the python man page). > You have to use EditLine syntax: > > readline.parse_and_bind ("bind ^I rl_complete") Edward's example of using EditLine syntax works for my "raw python" test: $ py

Re: [Pythonmac-SIG] [IPython-dev] readline support for OS X Leopard

2007-10-30 Thread Boyd Waters
On Oct 30, 2007, at 4:41 PM, Hans Meine wrote: > What about multiple pythons/readlines? I happend to look over the > shoulder of > an OS X user yesterday, who had three versions of python installed > on his > system. (I would not suggest that this is a good idea, but AFAICS > it happens >

Re: [Pythonmac-SIG] [IPython-dev] readline support for OS X Leopard

2007-10-30 Thread Michael VanLandingham
Well one way to do this, although perhaps crude, would be to check to see if the libreadline is really a link to editline, since on a default Leopard install, it is: [mvl ~]$ ls -l /usr/lib/libreadline.dylib lrwxr-xr-x 1 root wheel 15 Oct 17 15:59 /usr/lib/libreadline.dylib@ -> libedit.2

Re: [Pythonmac-SIG] [IPython-dev] readline support for OS X Leopard

2007-10-30 Thread Brian Granger
I am afraid that this patch won't cut it. It does a simple test of the os type. The problem is that someone could install a version of python on OS X and want to use the other readline library (for example the OS X python binaries from the python.org website ship with this readline). Somehow, we

Re: [Pythonmac-SIG] Error installing mysql-python 1.2.2 on mac os x 10.4.9

2007-10-30 Thread Lyndsey Ferguson
Hi Alex, I'm responding to your question on the list so that everyone can benefit from our experiences: On Oct 30, 2007, at 1:29 PM, Alessandro Censoni wrote: >ImportError: dlopen(/Users/alessandrocensoni/.python-eggs/ MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so, 2): Librar

[Pythonmac-SIG] Default Leopard Python and bsddb

2007-10-30 Thread Luc Heinrich
Grettings, Anybody knows how to make the bsddb module of the default Leopard's Python work ? Right now, all I get is this: >>> import bsddb.db Traceback (most recent call last): File "", line 1, in File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/bsddb/__in

Re: [Pythonmac-SIG] Error installing mysql-python 1.2.2 on mac os x 10.4.9

2007-10-30 Thread Lyndsey Ferguson
On Oct 30, 2007, at 11:40 AM, Alessandro Censoni wrote: > return popen(“mysql_config --%s” % what) (1) > to > return popen(“/usr/local/mysql/bin/mysql_config --%s” % what) (2) > > > In the python.py of the mysql-python-1.2.2 there isn't a line like > (1). While, in the file sit

[Pythonmac-SIG] Error installing mysql-python 1.2.2 on mac os x 10.4.9

2007-10-30 Thread Alessandro Censoni
Hi all, I trie to install mysql-python 1.2.2 but I have a lot of errors. I have install MySQL 5.0.45 and python 2.5.1. I use Mac OS X 10.4.9 and when I trie to build mysqldb i have the following and famous error: >sh: line 1: mysql_config: command not found >Traceback (most recent call last):